mirror of
https://github.com/zulip/zulip.git
synced 2025-11-20 14:38:46 +00:00
night mode: Fix initial state of night mode.
This commit is contained in:
@@ -2,12 +2,6 @@ var night_mode = (function () {
|
|||||||
|
|
||||||
var exports = {};
|
var exports = {};
|
||||||
|
|
||||||
exports.initialize = function () {
|
|
||||||
if (page_params.night_mode) {
|
|
||||||
exports.enable();
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
exports.enable = function () {
|
exports.enable = function () {
|
||||||
$("body").addClass("night-mode");
|
$("body").addClass("night-mode");
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -357,7 +357,6 @@ exports.initialize_everything = function () {
|
|||||||
sent_messages.initialize();
|
sent_messages.initialize();
|
||||||
hotspots.initialize();
|
hotspots.initialize();
|
||||||
ui.initialize();
|
ui.initialize();
|
||||||
night_mode.initialize();
|
|
||||||
panels.initialize();
|
panels.initialize();
|
||||||
typing.initialize();
|
typing.initialize();
|
||||||
starred_messages.initialize();
|
starred_messages.initialize();
|
||||||
|
|||||||
@@ -40,7 +40,7 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body {% if night_mode %}class="night-mode"{% endif %}>
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
Reference in New Issue
Block a user