REFACTOR: Remove an unnecessary Discourse.__container__

This commit is contained in:
Robin Ward 2020-08-06 15:14:20 -04:00
parent 7cd11bad0c
commit a80d749b9d
2 changed files with 1 additions and 4 deletions

View File

@ -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: {

View File

@ -43,7 +43,7 @@
</div>
</div>
{{#unless isIOS}}
{{#unless capabilities.isIOS}}
<div class="control-group desktop-notifications">
<label class="control-label">{{i18n "user.desktop_notifications.label"}}</label>
{{desktop-notification-config}}