night mode: Fix initial state of night mode.

This commit is contained in:
Tim Abbott 2019-03-08 15:44:11 -08:00
parent 3df4990781
commit 399aa43c75
3 changed files with 1 additions and 8 deletions

View File

@ -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");
};

View File

@ -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();

View File

@ -40,7 +40,7 @@
{% endblock %}
</head>
<body>
<body {% if night_mode %}class="night-mode"{% endif %}>
{% block content %}
{% endblock %}
</body>