FIX: Do not show push notification banner for MacOS (#19655)
This commit is contained in:
parent
e5349e43af
commit
01cbc64e19
|
@ -47,6 +47,8 @@ export function isPushNotificationsSupported() {
|
||||||
"showNotification" in ServiceWorkerRegistration.prototype &&
|
"showNotification" in ServiceWorkerRegistration.prototype &&
|
||||||
"PushManager" in window &&
|
"PushManager" in window &&
|
||||||
!caps.isAppWebview &&
|
!caps.isAppWebview &&
|
||||||
|
navigator.serviceWorker.controller &&
|
||||||
|
navigator.serviceWorker.controller.state === "activated" &&
|
||||||
!caps.isIOS
|
!caps.isIOS
|
||||||
)
|
)
|
||||||
) {
|
) {
|
||||||
|
|
Loading…
Reference in New Issue