FEATURE: Use feature detection for showing push notification in iOS (#20338)
* FEATURE: Use feature detection for showing push notification in iOS * Don't want this on DiscourseHub as it's confusing
This commit is contained in:
parent
584d9a9438
commit
8a224bf999
|
@ -48,8 +48,7 @@ export function isPushNotificationsSupported() {
|
|||
"PushManager" in window &&
|
||||
!caps.isAppWebview &&
|
||||
navigator.serviceWorker.controller &&
|
||||
navigator.serviceWorker.controller.state === "activated" &&
|
||||
!caps.isIOS
|
||||
navigator.serviceWorker.controller.state === "activated"
|
||||
)
|
||||
) {
|
||||
return false;
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
{{#unless this.capabilities.isIOS}}
|
||||
{{#unless this.capabilities.isAppWebview}}
|
||||
<div class="control-group desktop-notifications">
|
||||
<label class="control-label">{{i18n
|
||||
"user.desktop_notifications.label"
|
||||
|
|
Loading…
Reference in New Issue