mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Do not show push notification banner for MacOS (#19655)
This commit is contained in:
committed by
GitHub
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
|
||||
)
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user