summaryrefslogtreecommitdiff
path: root/src/web/app/boot.js
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-12-08 14:56:10 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-12-08 14:56:10 +0900
commit8c70c9d6a0290c0d09e53e4a550d3e28c33059d2 (patch)
tree744a4330b0c2d9248e835f1c76e87c34e1c88b87 /src/web/app/boot.js
parentv3268 (diff)
downloadmisskey-8c70c9d6a0290c0d09e53e4a550d3e28c33059d2.tar.gz
misskey-8c70c9d6a0290c0d09e53e4a550d3e28c33059d2.tar.bz2
misskey-8c70c9d6a0290c0d09e53e4a550d3e28c33059d2.zip
Fix #952
Diffstat (limited to 'src/web/app/boot.js')
-rw-r--r--src/web/app/boot.js4
1 files changed, 4 insertions, 0 deletions
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);
}