fix typo #5890
This commit is contained in:
parent
23e7650983
commit
982520bcef
2 changed files with 2 additions and 2 deletions
20
src/server/web/views/flush.pug
Normal file
20
src/server/web/views/flush.pug
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
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)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue