summaryrefslogtreecommitdiffstats
path: root/dist/js/logout.js
diff options
context:
space:
mode:
authorsijanec <sijanecantonluka@gmail.com>2020-05-17 15:07:56 +0200
committersijanec <sijanecantonluka@gmail.com>2020-05-17 15:07:56 +0200
commitdcd2233aa6ceabe00b06b4fe342b14bf211e9f4a (patch)
tree4158b4ac7c70105af682c278e64966846f3fa9ec /dist/js/logout.js
parenttnx za popravljeno install skripto (diff)
downloadbeziapp-dcd2233aa6ceabe00b06b4fe342b14bf211e9f4a.tar
beziapp-dcd2233aa6ceabe00b06b4fe342b14bf211e9f4a.tar.gz
beziapp-dcd2233aa6ceabe00b06b4fe342b14bf211e9f4a.tar.bz2
beziapp-dcd2233aa6ceabe00b06b4fe342b14bf211e9f4a.tar.lz
beziapp-dcd2233aa6ceabe00b06b4fe342b14bf211e9f4a.tar.xz
beziapp-dcd2233aa6ceabe00b06b4fe342b14bf211e9f4a.tar.zst
beziapp-dcd2233aa6ceabe00b06b4fe342b14bf211e9f4a.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");
+});