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