mirror of
https://github.com/navidrome/navidrome.git
synced 2026-10-28 14:17:10 +01:00
- add check to see if cache is defined before deleting
This commit is contained in:
parent
8e1982c633
commit
e8d409e7c0
1 changed files with 4 additions and 3 deletions
|
|
@ -99,9 +99,10 @@ const removeItems = () => {
|
|||
}
|
||||
|
||||
const clearServiceWorkerCache = () => {
|
||||
caches.keys().then(function (keyList) {
|
||||
for (let key of keyList) caches.delete(key)
|
||||
})
|
||||
window.caches &&
|
||||
caches.keys().then(function (keyList) {
|
||||
for (let key of keyList) caches.delete(key)
|
||||
})
|
||||
}
|
||||
|
||||
const generateSubsonicSalt = () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue