From 8c70c9d6a0290c0d09e53e4a550d3e28c33059d2 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 8 Dec 2017 14:56:10 +0900 Subject: Fix #952 --- src/web/app/boot.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/web/app/boot.js') diff --git a/src/web/app/boot.js b/src/web/app/boot.js index 0a3154ad88..211dc2f883 100644 --- a/src/web/app/boot.js +++ b/src/web/app/boot.js @@ -95,6 +95,10 @@ // Clear cache (serive worker) try { navigator.serviceWorker.controller.postMessage('clear'); + + navigator.serviceWorker.getRegistrations().then(registrations => { + registrations.forEach(registration => registration.unregister()); + }); } catch (e) { console.error(e); } -- cgit v1.3.1-freya