mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 03:16:41 +08:00
REFACTOR: Remove an unnecessary Discourse.__container__
This commit is contained in:
parent
7cd11bad0c
commit
a80d749b9d
|
@ -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: {
|
||||
|
|
|
@ -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}}
|
||||
|
|
Loading…
Reference in New Issue
Block a user