mirror of
https://github.com/discourse/discourse.git
synced 2026-08-13 06:25:11 -05:00
FIX: Do not show push notification banner for MacOS (#19655)
This commit is contained in:
@@ -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