FEATURE: PWA users are prompted for push before first post (#17888)
This commit is contained in:
parent
2422ca0e67
commit
5afdf24292
|
@ -32,7 +32,7 @@ export default DesktopNotificationConfig.extend({
|
||||||
this.siteSettings.push_notifications_prompt &&
|
this.siteSettings.push_notifications_prompt &&
|
||||||
!isNotSupported &&
|
!isNotSupported &&
|
||||||
this.currentUser &&
|
this.currentUser &&
|
||||||
anyPosts &&
|
(this.capabilities.isPwa || anyPosts) &&
|
||||||
Notification.permission !== "denied" &&
|
Notification.permission !== "denied" &&
|
||||||
Notification.permission !== "granted" &&
|
Notification.permission !== "granted" &&
|
||||||
!isEnabled &&
|
!isEnabled &&
|
||||||
|
|
Loading…
Reference in New Issue