FEATURE: PWA users are prompted for push before first post (#17888)

This commit is contained in:
Rafael dos Santos Silva 2022-08-12 15:30:28 -03:00 committed by GitHub
parent 2422ca0e67
commit 5afdf24292
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 &&