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:
parent
8cd7c9b259
commit
9063520d89
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user