summaryrefslogtreecommitdiffstats
path: root/assets/js/logout.js
diff options
context:
space:
mode:
Diffstat (limited to 'assets/js/logout.js')
-rw-r--r--assets/js/logout.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/assets/js/logout.js b/assets/js/logout.js
new file mode 100644
index 0000000..f9c2543
--- /dev/null
+++ b/assets/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");
+});