mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-24 07:30:57 +03:00
Remove clearServiceWorkerCache, not needed anymore. (#1205)
remove clearServiceWorkerCache, not needed anymore.
This commit is contained in:
parent
99be8444d3
commit
265f33ed9d
@ -68,11 +68,6 @@ const authProvider = {
|
||||
logout: () => {
|
||||
stopEventStream()
|
||||
removeItems()
|
||||
try {
|
||||
clearServiceWorkerCache()
|
||||
} catch (e) {
|
||||
console.log('Error clearing service worker cache:', e)
|
||||
}
|
||||
return Promise.resolve()
|
||||
},
|
||||
|
||||
@ -115,11 +110,4 @@ const removeItems = () => {
|
||||
localStorage.removeItem('is-authenticated')
|
||||
}
|
||||
|
||||
const clearServiceWorkerCache = () => {
|
||||
window.caches &&
|
||||
caches.keys().then(function (keyList) {
|
||||
for (let key of keyList) caches.delete(key)
|
||||
})
|
||||
}
|
||||
|
||||
export default authProvider
|
||||
|
Loading…
x
Reference in New Issue
Block a user