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 &&
|
||||
"PushManager" in window &&
|
||||
!caps.isAppWebview &&
|
||||
navigator.serviceWorker.controller &&
|
||||
navigator.serviceWorker.controller.state === "activated" &&
|
||||
!caps.isIOS
|
||||
)
|
||||
) {
|
||||
|
|
Loading…
Reference in New Issue