Files
zulip/static/js/night_mode.js
Anders Kaseorg d17b577d0c js: Purge useless IIFEs.
With webpack, variables declared in each file are already file-local
(Global variables need to be explicitly exported), so these IIFEs are
no longer needed.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2019-10-25 13:51:21 -07:00

10 lines
179 B
JavaScript

exports.enable = function () {
$("body").addClass("night-mode");
};
exports.disable = function () {
$("body").removeClass("night-mode");
};
window.night_mode = exports;