-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sw_v2.min.js
1 lines (1 loc) · 1.06 KB
/
sw_v2.min.js
1
(()=>{var n={STATIC_ASSETS:["/css/styles_v0_12.css","/favicon.ico","/fonts/montserrat-v25-latin-700.woff2","/fonts/ubuntu-v20-latin-700.woff2","/fonts/ubuntu-v20-latin-italic.woff2","/fonts/ubuntu-v20-latin-regular.woff2","/img/avatar/avatar.jpg","/img/header-background/01.jpg","/img/header-background/01.webp","/img/lazy-loading.png","/img/lazy-loading.png","/img/not-found.png","/img/offline.jpg","/img/teller_leer.jpg","/index.html","/index.json","/nicht-gefunden/index.html","/nicht-verbunden/index.html","/site.webmanifest","/suchen/index.html","/svg/logo/logo.svg","/svg/sprites/meta-sprite.svg","/svg/sprites/misc-sprite_v6_6.svg"]},s=n.STATIC_ASSETS,e=0,t=`cache-v${e}`,o=()=>{e++,t=`cache-v${e}`};self.addEventListener("install",e=>{console.log("Attempting to install service worker and cache static assets"),e.waitUntil(caches.open(t).then(e=>(o(),e.addAll(s))).catch(e=>console.log(e)))}),self.addEventListener("activate",e=>{console.log("Activating new service worker..."),e.waitUntil(caches.keys().then(e=>Promise.all(e.map(e=>{if(e!==t)return caches.delete(e)}))))})})()