summaryrefslogtreecommitdiffstats
path: root/js/logout.js
diff options
context:
space:
mode:
authorAnton Luka Šijanec <sijanecantonluka@gmail.com>2020-02-09 15:25:36 +0100
committerAnton Luka Šijanec <sijanecantonluka@gmail.com>2020-02-09 15:25:36 +0100
commit711ab04789b3c3380ba1dd09a32774c17e93de4c (patch)
treeb0e6498eb204d5cb7f352528f477551add901f87 /js/logout.js
parentsome messaging fixes (diff)
downloadbeziapp-711ab04789b3c3380ba1dd09a32774c17e93de4c.tar
beziapp-711ab04789b3c3380ba1dd09a32774c17e93de4c.tar.gz
beziapp-711ab04789b3c3380ba1dd09a32774c17e93de4c.tar.bz2
beziapp-711ab04789b3c3380ba1dd09a32774c17e93de4c.tar.lz
beziapp-711ab04789b3c3380ba1dd09a32774c17e93de4c.tar.xz
beziapp-711ab04789b3c3380ba1dd09a32774c17e93de4c.tar.zst
beziapp-711ab04789b3c3380ba1dd09a32774c17e93de4c.zip
Diffstat (limited to '')
-rw-r--r--js/logout.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/js/logout.js b/js/logout.js
index b4b36be..f9c2543 100644
--- a/js/logout.js
+++ b/js/logout.js
@@ -1,4 +1,5 @@
-navigator.serviceWorker.controller.postMessage(JSON.stringify({action: "deletecaches"})); // deletes cache
+// 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");
});