summaryrefslogtreecommitdiffstats
path: root/dist/js/assets/js/logout.js
blob: f9c254311de592f211f76202e658fb8581dd0efe (plain) (blame)
1
2
3
4
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");
});