diff options
author | jakobst1n <undefined> | 2020-10-14 13:18:09 +0200 |
---|---|---|
committer | jakobst1n <undefined> | 2020-10-14 13:18:09 +0200 |
commit | ca54e66e264f200d7e95db0159e2c50c865d6234 (patch) | |
tree | 628d37a288aa41bc928e2e71c0a39bea2b2f488a /service-worker.js | |
parent | 2a58e5697f208efe49b6c92424f5dd3b9b23b5a0 (diff) | |
download | Aurora-data-ca54e66e264f200d7e95db0159e2c50c865d6234.tar.gz Aurora-data-ca54e66e264f200d7e95db0159e2c50c865d6234.zip |
Updates
Diffstat (limited to 'service-worker.js')
-rw-r--r-- | service-worker.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/service-worker.js b/service-worker.js index 8b66b68..8336ba1 100644 --- a/service-worker.js +++ b/service-worker.js @@ -1 +1 @@ -!function(){"use strict";const e=1602674112639,t="cache"+e,s=["/service-worker-index.html","/aurora.jpg","/favicon.png","/global.css","/index.css","/logo-192.png","/logo-512.png","/manifest.json","/postcss.config.js"].map((e=>"/Aurora-data"+e)),a=["/client/inject_styles.5607aec6.js","/client/index.bdacbdbd.js","/client/client.9199399a.js"].map((e=>"/Aurora-data"+e)).concat(s),n=new Set(a);self.addEventListener("install",(e=>{e.waitUntil(caches.open(t).then((e=>e.addAll(a))).then((()=>{self.skipWaiting()})))})),self.addEventListener("activate",(e=>{e.waitUntil(caches.keys().then((async e=>{for(const s of e)s!==t&&await caches.delete(s);self.clients.claim()})))})),self.addEventListener("fetch",(t=>{if("GET"!==t.request.method||t.request.headers.has("range"))return;const s=new URL(t.request.url);s.protocol.startsWith("http")&&(s.hostname===self.location.hostname&&s.port!==self.location.port||(s.host===self.location.host&&n.has(s.pathname)?t.respondWith(caches.match(t.request)):"only-if-cached"!==t.request.cache&&t.respondWith(caches.open("offline"+e).then((async e=>{try{const s=await fetch(t.request);return e.put(t.request,s.clone()),s}catch(s){const a=await e.match(t.request);if(a)return a;throw s}})))))}))}(); +!function(){"use strict";const e=1602674277086,t="cache"+e,s=["/service-worker-index.html","/aurora.jpg","/favicon.png","/global.css","/index.css","/logo-192.png","/logo-512.png","/manifest.json","/postcss.config.js"].map((e=>"/Aurora-data"+e)),n=["/client/inject_styles.5607aec6.js","/client/index.d2745b3f.js","/client/client.2977978b.js"].map((e=>"/Aurora-data"+e)).concat(s),a=new Set(n);self.addEventListener("install",(e=>{e.waitUntil(caches.open(t).then((e=>e.addAll(n))).then((()=>{self.skipWaiting()})))})),self.addEventListener("activate",(e=>{e.waitUntil(caches.keys().then((async e=>{for(const s of e)s!==t&&await caches.delete(s);self.clients.claim()})))})),self.addEventListener("fetch",(t=>{if("GET"!==t.request.method||t.request.headers.has("range"))return;const s=new URL(t.request.url);s.protocol.startsWith("http")&&(s.hostname===self.location.hostname&&s.port!==self.location.port||(s.host===self.location.host&&a.has(s.pathname)?t.respondWith(caches.match(t.request)):"only-if-cached"!==t.request.cache&&t.respondWith(caches.open("offline"+e).then((async e=>{try{const s=await fetch(t.request);return e.put(t.request,s.clone()),s}catch(s){const n=await e.match(t.request);if(n)return n;throw s}})))))}))}(); |