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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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