Fix #952
This commit is contained in:
parent
973d446358
commit
8c70c9d6a0
5 changed files with 12 additions and 36 deletions
|
|
@ -11,6 +11,10 @@ export default async function(mios: MiOS) {
|
|||
// Clear cache (serive worker)
|
||||
try {
|
||||
navigator.serviceWorker.controller.postMessage('clear');
|
||||
|
||||
navigator.serviceWorker.getRegistrations().then(registrations => {
|
||||
registrations.forEach(registration => registration.unregister());
|
||||
});
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue