FIX: Avoid Safari service worker error on back navigation (#12171)

This commit is contained in:
Penar Musaraj
2021-02-22 14:11:20 -05:00
committed by GitHub
parent 8cd7c9b259
commit 9063520d89

View File

@@ -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