mirror of https://github.com/zulip/zulip.git
night mode: Fix initial state of night mode.
This commit is contained in:
parent
3df4990781
commit
399aa43c75
|
@ -2,12 +2,6 @@ var night_mode = (function () {
|
|||
|
||||
var exports = {};
|
||||
|
||||
exports.initialize = function () {
|
||||
if (page_params.night_mode) {
|
||||
exports.enable();
|
||||
}
|
||||
};
|
||||
|
||||
exports.enable = function () {
|
||||
$("body").addClass("night-mode");
|
||||
};
|
||||
|
|
|
@ -357,7 +357,6 @@ exports.initialize_everything = function () {
|
|||
sent_messages.initialize();
|
||||
hotspots.initialize();
|
||||
ui.initialize();
|
||||
night_mode.initialize();
|
||||
panels.initialize();
|
||||
typing.initialize();
|
||||
starred_messages.initialize();
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
{% endblock %}
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<body {% if night_mode %}class="night-mode"{% endif %}>
|
||||
{% block content %}
|
||||
{% endblock %}
|
||||
</body>
|
||||
|
|
Loading…
Reference in New Issue