From 274f7014f76fb66e4bfb57d1f0f7c61905a21b05 Mon Sep 17 00:00:00 2001 From: Felix Schulze Date: Tue, 12 Nov 2019 16:35:23 +0100 Subject: [PATCH] make sw activate if updated --- src/sw.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sw.js b/src/sw.js index 60414d3..6b07b12 100644 --- a/src/sw.js +++ b/src/sw.js @@ -2,6 +2,7 @@ importScripts('/cache-polyfill.js'); self.addEventListener('install', function(e) { + self.skipWaiting(); e.waitUntil( caches.open('meritkollen').then(function(cache) { return cache.addAll([