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 &&
|
"PushManager" in window &&
|
||||||
!caps.isAppWebview &&
|
!caps.isAppWebview &&
|
||||||
navigator.serviceWorker.controller &&
|
navigator.serviceWorker.controller &&
|
||||||
navigator.serviceWorker.controller.state === "activated" &&
|
navigator.serviceWorker.controller.state === "activated"
|
||||||
!caps.isIOS
|
|
||||||
)
|
)
|
||||||
) {
|
) {
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{#unless this.capabilities.isIOS}}
|
{{#unless this.capabilities.isAppWebview}}
|
||||||
<div class="control-group desktop-notifications">
|
<div class="control-group desktop-notifications">
|
||||||
<label class="control-label">{{i18n
|
<label class="control-label">{{i18n
|
||||||
"user.desktop_notifications.label"
|
"user.desktop_notifications.label"
|
||||||
|
|
Loading…
Reference in New Issue