Skip to content

🎧 Your Personal Streaming Service

Fix exception when running in Firefox over insecure http. Fix #1039

Deluanb6f525bda524
diff --git a/ui/src/authProvider.js b/ui/src/authProvider.js
index dacffc656..b423da352 100644
--- a/ui/src/authProvider.js
+++ b/ui/src/authProvider.js
@@ -59,7 +59,11 @@ const authProvider = {
logout: () => {
stopEventStream()
removeItems()
- clearServiceWorkerCache()
+ try {
+ clearServiceWorkerCache()
+ } catch (e) {
+ console.log('Error clearing service worker cache:', e)
+ }
return Promise.resolve()
},