blob: f9c254311de592f211f76202e658fb8581dd0efe (
plain) (
tree)
|
|
// 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");
});
|