diff --git a/app/assets/javascripts/discourse/app/controllers/preferences/notifications.js b/app/assets/javascripts/discourse/app/controllers/preferences/notifications.js index f076d45bc44..b9d14969598 100644 --- a/app/assets/javascripts/discourse/app/controllers/preferences/notifications.js +++ b/app/assets/javascripts/discourse/app/controllers/preferences/notifications.js @@ -87,9 +87,6 @@ export default Controller.extend({ }, { name: I18n.t("user.new_topic_duration.last_here"), value: -2 } ]; - - const caps = Discourse.__container__.lookup("capabilities:main"); - this.isIOS = caps.isIOS; }, actions: { diff --git a/app/assets/javascripts/discourse/app/templates/preferences/notifications.hbs b/app/assets/javascripts/discourse/app/templates/preferences/notifications.hbs index 9e079fd5c5b..ad3b52e8a33 100644 --- a/app/assets/javascripts/discourse/app/templates/preferences/notifications.hbs +++ b/app/assets/javascripts/discourse/app/templates/preferences/notifications.hbs @@ -43,7 +43,7 @@ -{{#unless isIOS}} +{{#unless capabilities.isIOS}}
{{desktop-notification-config}}