mirror of
https://github.com/discourse/discourse.git
synced 2025-04-03 05:39: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 }
|
{ name: I18n.t("user.new_topic_duration.last_here"), value: -2 }
|
||||||
];
|
];
|
||||||
|
|
||||||
const caps = Discourse.__container__.lookup("capabilities:main");
|
|
||||||
this.isIOS = caps.isIOS;
|
|
||||||
},
|
},
|
||||||
|
|
||||||
actions: {
|
actions: {
|
||||||
|
@ -43,7 +43,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{#unless isIOS}}
|
{{#unless capabilities.isIOS}}
|
||||||
<div class="control-group desktop-notifications">
|
<div class="control-group desktop-notifications">
|
||||||
<label class="control-label">{{i18n "user.desktop_notifications.label"}}</label>
|
<label class="control-label">{{i18n "user.desktop_notifications.label"}}</label>
|
||||||
{{desktop-notification-config}}
|
{{desktop-notification-config}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user