diff options
author | Andrew Dolgov <[email protected]> | 2019-11-17 15:01:58 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2019-11-17 15:01:58 +0300 |
commit | 10734c622fb6d9ca19f8580242ff951ab9775045 (patch) | |
tree | 8e3dfda392de40d67a291d8f79ee05e8a185d2ae /worker.js | |
parent | dd295914d4fad0ac8c846dc5f3f761f72e2199d3 (diff) |
handle initial page load better (reload to activate service worker)
Diffstat (limited to 'worker.js')
-rw-r--r-- | worker.js | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -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( |