summaryrefslogtreecommitdiffstats
path: root/js/logout.js
blob: b4b36bed6f908d88bc718aea9244b250cc9c6dbd (plain) (blame)
1
2
3
4
navigator.serviceWorker.controller.postMessage(JSON.stringify({action: "deletecaches"})); // deletes cache
localforage.clear().then(() => { // deletes localforage
    window.location.replace("/index.html");
});