-
-
Notifications
You must be signed in to change notification settings - Fork 74
/
sw.js
2 lines (2 loc) · 566 Bytes
/
sw.js
1
2
// A unminified version is at og-sw.js
self.addEventListener('install',function(event){console.log('SW installing...');event.waitUntil(caches.open('soundboard-cache-v1').then(function(cache){return cache.addAll(['/','index.html','css/styles.css','css/spinner.css','img/mlg-favicon.png','loader.js','sounds.json']);}));});self.addEventListener('activate',function(event){console.log('SW activating...');});self.addEventListener('fetch',function(event){event.respondWith(caches.match(event.request).then(function(response){return response||fetch(event.request);}));});