Remove clearServiceWorkerCache, not needed anymore. (#1205)

remove clearServiceWorkerCache, not needed anymore.
This commit is contained in:
certuna 2021-06-23 18:11:35 +02:00 committed by GitHub
parent 99be8444d3
commit 265f33ed9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 12 deletions

View File

@ -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