mirror of
https://github.com/navidrome/navidrome.git
synced 2026-11-26 03:26:52 +03:00
Update serviceWorker to the latest from create-react-app
This commit is contained in:
1 parent
bf93b5614c
commit
ca283f45ea
1 file changed
+7
-3
@@ -130,8 +130,12 @@ function checkValidServiceWorker(swUrl, config) {
|
||||
|
||||
export function unregister() {
|
||||
if ('serviceWorker' in navigator) {
|
||||
navigator.serviceWorker.ready.then((registration) => {
|
||||
registration.unregister()
|
||||
})
|
||||
navigator.serviceWorker.ready
|
||||
.then((registration) => {
|
||||
registration.unregister()
|
||||
})
|
||||
.catch((error) => {
|
||||
console.error(error.message)
|
||||
})
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user