diff options
author | sijanec <sijanecantonluka@gmail.com> | 2020-09-26 21:42:10 +0200 |
---|---|---|
committer | sijanec <sijanecantonluka@gmail.com> | 2020-09-26 21:42:10 +0200 |
commit | 3a3246dfecab404df90513989bf84a270e17d1f1 (patch) | |
tree | 629eb2d4f82d561fa709150742bb64c0bef54759 /dist/js/logout.js | |
parent | unset tracking vars are now not reported to the spyware server (diff) | |
download | beziapp-3a3246dfecab404df90513989bf84a270e17d1f1.tar beziapp-3a3246dfecab404df90513989bf84a270e17d1f1.tar.gz beziapp-3a3246dfecab404df90513989bf84a270e17d1f1.tar.bz2 beziapp-3a3246dfecab404df90513989bf84a270e17d1f1.tar.lz beziapp-3a3246dfecab404df90513989bf84a270e17d1f1.tar.xz beziapp-3a3246dfecab404df90513989bf84a270e17d1f1.tar.zst beziapp-3a3246dfecab404df90513989bf84a270e17d1f1.zip |
Diffstat (limited to '')
-rwxr-xr-x | dist/js/logout.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/dist/js/logout.js b/dist/js/logout.js index 3f9f7ed..f9c2543 100755 --- a/dist/js/logout.js +++ b/dist/js/logout.js @@ -1,2 +1,5 @@ - -localforage.clear().then(()=>{window.location.replace("/index.html");});
\ No newline at end of file +// 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"); +}); |