mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-01 01:32:09 +01:00
✌️
This commit is contained in:
parent
305a620aed
commit
8ed4e5422b
1 changed files with 8 additions and 0 deletions
|
@ -7,6 +7,14 @@ export default async function(mios: MiOS) {
|
||||||
|
|
||||||
if (meta.version != _VERSION_) {
|
if (meta.version != _VERSION_) {
|
||||||
localStorage.setItem('should-refresh', 'true');
|
localStorage.setItem('should-refresh', 'true');
|
||||||
|
|
||||||
|
// Clear cache (serive worker)
|
||||||
|
try {
|
||||||
|
navigator.serviceWorker.controller.postMessage('clear');
|
||||||
|
} catch (e) {
|
||||||
|
console.error(e);
|
||||||
|
}
|
||||||
|
|
||||||
alert('%i18n:common.update-available%'.replace('{newer}', meta.version).replace('{current}', _VERSION_));
|
alert('%i18n:common.update-available%'.replace('{newer}', meta.version).replace('{current}', _VERSION_));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue