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 &&
|
||||
!isNotSupported &&
|
||||
this.currentUser &&
|
||||
anyPosts &&
|
||||
(this.capabilities.isPwa || anyPosts) &&
|
||||
Notification.permission !== "denied" &&
|
||||
Notification.permission !== "granted" &&
|
||||
!isEnabled &&
|
||||
|
|
Loading…
Reference in New Issue