mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Avoid Safari service worker error on back navigation (#12171)
This commit is contained in:
@@ -53,7 +53,7 @@ export function isPushNotificationsSupported(mobileView) {
|
||||
if (
|
||||
!(
|
||||
"serviceWorker" in navigator &&
|
||||
ServiceWorkerRegistration &&
|
||||
typeof ServiceWorkerRegistration !== "undefined" &&
|
||||
typeof Notification !== "undefined" &&
|
||||
"showNotification" in ServiceWorkerRegistration.prototype &&
|
||||
"PushManager" in window
|
||||
|
||||
Reference in New Issue
Block a user