mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-28 01:26:44 -06:00
fix: clear Service Worker caches correctly
This commit is contained in:
parent
c8a769e753
commit
bb2c6e0326
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ globalThis.addEventListener('activate', ev => {
|
|||
caches.keys()
|
||||
.then(cacheNames => Promise.all(
|
||||
cacheNames
|
||||
.filter((v) => v !== swLang.cacheName && !v.startsWith('misskey-static-'))
|
||||
.filter((v) => v !== STATIC_CACHE_NAME && v !== swLang.cacheName)
|
||||
.map(name => caches.delete(name)),
|
||||
))
|
||||
.then(() => globalThis.clients.claim()),
|
||||
|
|
Loading…
Reference in a new issue