summaryrefslogtreecommitdiffstats
path: root/dist/js/logout.js
diff options
context:
space:
mode:
authorsijanec <sijanecantonluka@gmail.com>2020-05-20 14:12:06 +0200
committersijanec <sijanecantonluka@gmail.com>2020-05-20 14:12:06 +0200
commit7820ea23532aa6ffa3611d8379681aa44a3f3864 (patch)
treea8e0f9b1133a535b207724d20e75d1305b292040 /dist/js/logout.js
parentinstall scritp fix (diff)
downloadbeziapp-7820ea23532aa6ffa3611d8379681aa44a3f3864.tar
beziapp-7820ea23532aa6ffa3611d8379681aa44a3f3864.tar.gz
beziapp-7820ea23532aa6ffa3611d8379681aa44a3f3864.tar.bz2
beziapp-7820ea23532aa6ffa3611d8379681aa44a3f3864.tar.lz
beziapp-7820ea23532aa6ffa3611d8379681aa44a3f3864.tar.xz
beziapp-7820ea23532aa6ffa3611d8379681aa44a3f3864.tar.zst
beziapp-7820ea23532aa6ffa3611d8379681aa44a3f3864.zip
Diffstat (limited to '')
-rw-r--r--dist/js/logout.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/dist/js/logout.js b/dist/js/logout.js
new file mode 100644
index 0000000..f9c2543
--- /dev/null
+++ b/dist/js/logout.js
@@ -0,0 +1,5 @@
+// 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");
+});