Repository navigation
Expand file tree
/
Copy pathservice-worker.js
More file actions
1 lines (1 loc) · 3.69 KB
/
Copy pathservice-worker.js
File metadata and controls
1 lines (1 loc) · 3.69 KB
1
!function(){"use strict";const o=["client/client.68c99b4d.js","client/chunk.abeba03e.js","client/chunk.8c2111c0.js","client/chunk.97076eb5.js","client/chunk.659cf27e.js","client/chunk.f8d02012.js","client/chunk.891ba29d.js","client/chunk.1e48b67e.js","client/chunk.c6c4f721.js","client/chunk.6969b2cf.js","client/chunk.cffe46bd.js"].concat(["/service-worker-index.html","CNAME","favicon.png","fonts/fira-mono/fira-mono-latin-400.woff2","fonts/overpass/overpass-latin-100.woff2","fonts/overpass/overpass-latin-300.woff2","fonts/overpass/overpass-latin-400.woff2","fonts/overpass/overpass-latin-700.woff2","fonts/roboto/roboto-latin-400.woff2","fonts/roboto/roboto-latin-400italic.woff2","fonts/roboto/roboto-latin-500.woff2","fonts/roboto/roboto-latin-500italic.woff2","global.css","icons/arrow-right.svg","icons/check.svg","icons/chevron.svg","icons/collapse.svg","icons/download.svg","icons/dropdown.svg","icons/expand.svg","icons/flip.svg","icons/fork.svg","icons/link.svg","icons/save.svg","icons/tip.svg","images/svelte-android-chrome-192.png","images/svelte-android-chrome-512.png","images/svelte-apple-touch-icon.png","images/svelte-mstile-150.png","images/twitter-card.png","logo.svg","logo2.svg","logos_combined.svg","manifest.json","media/app-store.png","media/docs/layouts/absolute_layout_grid.svg","media/docs/layouts/absolute_layout_overlap.svg","media/docs/layouts/dock_layout_all_sides_and_stretch.svg","media/docs/layouts/dock_layout_multiple_on_same_side.svg","media/docs/layouts/dock_layout_no_stretch.svg","media/docs/layouts/dock_layout_stretch.svg","media/docs/layouts/flexbox_layout_column_reverse_space_around_align_self.svg","media/docs/layouts/flexbox_layout_column_stretch.svg","media/docs/layouts/flexbox_layout_row_custom_order.svg","media/docs/layouts/flexbox_layout_row_flex-start.svg","media/docs/layouts/flexbox_layout_row_stretch.svg","media/docs/layouts/flexbox_layout_wrap.svg","media/docs/layouts/grid_layout.svg","media/docs/layouts/grid_layout_complex.svg","media/docs/layouts/grid_layout_fixed_auto.svg","media/docs/layouts/grid_layout_star_sizing.svg","media/docs/layouts/stack_layout_horizontal.svg","media/docs/layouts/stack_layout_horizontal_align_children.svg","media/docs/layouts/stack_layout_vertical.svg","media/docs/layouts/stack_layout_vertical_align_children.svg","media/docs/layouts/wrap_layout_horizontal.svg","media/docs/layouts/wrap_layout_vertical.svg","media/google-play.png","media/nativescript-svelte-todo.gif","media/quick-start-screenshot.png","media/tns-success.png","media/todoapp/nativescript-svelte-todo2.gif","media/todoapp/todo-add-item.png","media/todoapp/todo-basic-design-1.png","media/todoapp/todo-basic-design-2.png","media/todoapp/todo-mark-complete.png","media/todoapp/todo-styled-button.png","media/todoapp/todo-styled-list1.png","media/todoapp/todo-styled-list2.png","media/todoapp/todo-styled-tabs.png","prism.css"]),s=new Set(o);self.addEventListener("install",s=>{s.waitUntil(caches.open("cache1552718227780").then(s=>s.addAll(o)).then(()=>{self.skipWaiting()}))}),self.addEventListener("activate",o=>{o.waitUntil(caches.keys().then(async o=>{for(const s of o)"cache1552718227780"!==s&&await caches.delete(s);self.clients.claim()}))}),self.addEventListener("fetch",o=>{if("GET"!==o.request.method||o.request.headers.has("range"))return;const t=new URL(o.request.url);t.protocol.startsWith("http")&&(t.hostname===self.location.hostname&&t.port!==self.location.port||(t.host===self.location.host&&s.has(t.pathname)?o.respondWith(caches.match(o.request)):"only-if-cached"!==o.request.cache&&o.respondWith(caches.open("offline1552718227780").then(async s=>{try{const t=await fetch(o.request);return s.put(o.request,t.clone()),t}catch(t){const e=await s.match(o.request);if(e)return e;throw t}}))))})}();