make sw activate if updated
This commit is contained in:
parent
24bf6336d8
commit
274f7014f7
@ -2,6 +2,7 @@ importScripts('/cache-polyfill.js');
|
|||||||
|
|
||||||
|
|
||||||
self.addEventListener('install', function(e) {
|
self.addEventListener('install', function(e) {
|
||||||
|
self.skipWaiting();
|
||||||
e.waitUntil(
|
e.waitUntil(
|
||||||
caches.open('meritkollen').then(function(cache) {
|
caches.open('meritkollen').then(function(cache) {
|
||||||
return cache.addAll([
|
return cache.addAll([
|
||||||
|
Reference in New Issue
Block a user