summaryrefslogtreecommitdiff
path: root/worker.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2019-11-17 15:01:58 +0300
committerAndrew Dolgov <[email protected]>2019-11-17 15:01:58 +0300
commit10734c622fb6d9ca19f8580242ff951ab9775045 (patch)
tree8e3dfda392de40d67a291d8f79ee05e8a185d2ae /worker.js
parentdd295914d4fad0ac8c846dc5f3f761f72e2199d3 (diff)
handle initial page load better (reload to activate service worker)
Diffstat (limited to 'worker.js')
-rw-r--r--worker.js8
1 files changed, 1 insertions, 7 deletions
diff --git a/worker.js b/worker.js
index de1a2e4..f567447 100644
--- a/worker.js
+++ b/worker.js
@@ -40,15 +40,9 @@ const CACHE_URLS = [
'lib/fonts/pmn-caecilia-75.ttf'
];
-/*
self.addEventListener('install', function(event) {
- event.waitUntil(
- caches.open(CACHE_NAME).then(function(cache) {
- return cache.addAll(CACHE_URLS.map((url) => new Request(url, {credentials: 'same-origin'})));
- })
- );
+ self.skipWaiting();
});
-*/
self.addEventListener('activate', function(event) {
event.waitUntil(