Skip to content

Commit

Permalink
REFACTOR: Remove an unnecessary Discourse.__container__
Browse files Browse the repository at this point in the history
  • Loading branch information
eviltrout committed Aug 6, 2020
1 parent 7cd11ba commit a80d749
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Expand Up @@ -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: {
Expand Down
Expand Up @@ -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}}
Expand Down

0 comments on commit a80d749

Please sign in to comment.