mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-15 20:13:09 +02:00
20 lines
433 B
Text
20 lines
433 B
Text
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)
|
|
}
|