mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-12-25 03:58:08 +09:00
21 lines
433 B
Plaintext
21 lines
433 B
Plaintext
|
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)
|
||
|
}
|