make sw activate if updated

This commit is contained in:
Felix Schulze 2019-11-12 16:35:23 +01:00
parent 24bf6336d8
commit 274f7014f7

View File

@ -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([