Files
zulip/static/js/zulip.js
Brock Whittaker f9f0f356be settings: Add backend storage and interface for night mode.
This allows the night mode setting to be stored in the backend.
2017-11-15 16:36:06 -08:00

19 lines
546 B
JavaScript

// This file is being eliminated as part of the general purge of
// global variables from Zulip (everything is being moved into
// modules). Please don't add things here.
var home_msg_list = new message_list.MessageList('zhome',
new Filter([{operator: "in", operand: "home"}]), {muting_enabled: true}
);
var current_msg_list = home_msg_list;
if (typeof module !== 'undefined') {
module.exports.current_msg_list = current_msg_list;
}
$(function () {
if (page_params.night_mode) {
$("body").addClass("dark-mode");
}
});