This commit is contained in:
tamaina 2020-02-09 20:53:00 +09:00
parent 23e7650983
commit 982520bcef
2 changed files with 2 additions and 2 deletions

View file

@ -1,20 +0,0 @@
doctype html
html
script.
localStorage.removeItem('locale');
try {
navigator.serviceWorker.controller.postMessage('clear');
navigator.serviceWorker.getRegistrations().then(registrations => {
return Promise.all(registrations.map(registration => registration.unregister()));
}).then(() => {
location = '/';
});
} catch (e) {
console.error(e);
setTimeout(() => {
location = '/';
}, 10000)
}