FIX: Do not show push notification banner for MacOS (#19655)

This commit is contained in:
Rafael dos Santos Silva 2022-12-29 14:50:09 -03:00 committed by GitHub
parent e5349e43af
commit 01cbc64e19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -47,6 +47,8 @@ export function isPushNotificationsSupported() {
"showNotification" in ServiceWorkerRegistration.prototype &&
"PushManager" in window &&
!caps.isAppWebview &&
navigator.serviceWorker.controller &&
navigator.serviceWorker.controller.state === "activated" &&
!caps.isIOS
)
) {