summaryrefslogtreecommitdiffstats
path: root/js/logout.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/logout.js')
-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");
});