mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-23 14:23:39 +08:00
also clearing cache after uninstalling the service worker
This commit is contained in:
parent
41e49d452c
commit
5d040ae8a0
1 changed files with 5 additions and 0 deletions
|
@ -80,6 +80,11 @@
|
|||
for (let registration of registrations) {
|
||||
registration.unregister();
|
||||
}
|
||||
caches.keys().then((cacheNames) => {
|
||||
for (let cacheName of cacheNames) {
|
||||
caches.delete(cacheName);
|
||||
}
|
||||
});
|
||||
});
|
||||
setTimeout(function () {
|
||||
window.location.reload();
|
||||
|
|
Loading…
Reference in a new issue