summaryrefslogtreecommitdiff
path: root/src/web/app/boot.js
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-11-28 15:41:41 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-11-28 15:41:41 +0900
commit305a620aed181302907dca884aa69caf12769ed2 (patch)
treeb3d29633345af081076b8fc05533227b126d0333 /src/web/app/boot.js
parentForce service worker activate (diff)
downloadmisskey-305a620aed181302907dca884aa69caf12769ed2.tar.gz
misskey-305a620aed181302907dca884aa69caf12769ed2.tar.bz2
misskey-305a620aed181302907dca884aa69caf12769ed2.zip
:v:
Diffstat (limited to 'src/web/app/boot.js')
-rw-r--r--src/web/app/boot.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/web/app/boot.js b/src/web/app/boot.js
index a5f0e04d31..0a3154ad88 100644
--- a/src/web/app/boot.js
+++ b/src/web/app/boot.js
@@ -92,6 +92,13 @@
'\n\n' +
'New version of Misskey available. The page will be reloaded.');
+ // Clear cache (serive worker)
+ try {
+ navigator.serviceWorker.controller.postMessage('clear');
+ } catch (e) {
+ console.error(e);
+ }
+
// Force reload
location.reload(true);
}