summaryrefslogtreecommitdiffstats
path: root/dist/js/logout.js
diff options
context:
space:
mode:
authorsijanec <sijanecantonluka@gmail.com>2020-08-30 20:14:01 +0200
committersijanec <sijanecantonluka@gmail.com>2020-08-30 20:14:01 +0200
commitd9969379798e23b2a62f8bf6eab3967d0497b1a8 (patch)
treea8132c6cf24ee3df1f3d8c768b60bf9378a4bbae /dist/js/logout.js
parentspremenil server message (diff)
downloadbeziapp-d9969379798e23b2a62f8bf6eab3967d0497b1a8.tar
beziapp-d9969379798e23b2a62f8bf6eab3967d0497b1a8.tar.gz
beziapp-d9969379798e23b2a62f8bf6eab3967d0497b1a8.tar.bz2
beziapp-d9969379798e23b2a62f8bf6eab3967d0497b1a8.tar.lz
beziapp-d9969379798e23b2a62f8bf6eab3967d0497b1a8.tar.xz
beziapp-d9969379798e23b2a62f8bf6eab3967d0497b1a8.tar.zst
beziapp-d9969379798e23b2a62f8bf6eab3967d0497b1a8.zip
Diffstat (limited to 'dist/js/logout.js')
-rwxr-xr-xdist/js/logout.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/dist/js/logout.js b/dist/js/logout.js
index 3f9f7ed..f9c2543 100755
--- a/dist/js/logout.js
+++ b/dist/js/logout.js
@@ -1,2 +1,5 @@
-
-localforage.clear().then(()=>{window.location.replace("/index.html");}); \ No newline at end of file
+// navigator.serviceWorker.controller.postMessage(JSON.stringify({action: "deletecaches"})); // cache only sets on initialization, so it should not be deleted.
+// since sw.js is not cached, updates work.
+localforage.clear().then(() => { // deletes localforage
+ window.location.replace("/index.html");
+});