summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Luka Šijanec <sijanecantonluka@gmail.com>2020-02-08 21:48:21 +0100
committerAnton Luka Šijanec <sijanecantonluka@gmail.com>2020-02-08 21:48:21 +0100
commitadbc8a73d64dfd5e57587002907df869c3ad2046 (patch)
tree3af3792f9b64d242feff4b88e6dbd00f97b1fc0d
parentMerge branch 'dev' of https://github.com/beziapp/beziapp.github.io into dev (diff)
downloadbeziapp-adbc8a73d64dfd5e57587002907df869c3ad2046.tar
beziapp-adbc8a73d64dfd5e57587002907df869c3ad2046.tar.gz
beziapp-adbc8a73d64dfd5e57587002907df869c3ad2046.tar.bz2
beziapp-adbc8a73d64dfd5e57587002907df869c3ad2046.tar.lz
beziapp-adbc8a73d64dfd5e57587002907df869c3ad2046.tar.xz
beziapp-adbc8a73d64dfd5e57587002907df869c3ad2046.tar.zst
beziapp-adbc8a73d64dfd5e57587002907df869c3ad2046.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 01af8cc..b4b36be 100644
--- a/js/logout.js
+++ b/js/logout.js
@@ -1,3 +1,4 @@
-localforage.clear().then(() => {
+navigator.serviceWorker.controller.postMessage(JSON.stringify({action: "deletecaches"})); // deletes cache
+localforage.clear().then(() => { // deletes localforage
window.location.replace("/index.html");
});