mirror of https://github.com/zulip/zulip.git
20 lines
329 B
JavaScript
20 lines
329 B
JavaScript
var night_mode = (function () {
|
|
|
|
var exports = {};
|
|
|
|
exports.enable = function () {
|
|
$("body").addClass("night-mode");
|
|
};
|
|
|
|
exports.disable = function () {
|
|
$("body").removeClass("night-mode");
|
|
};
|
|
|
|
return exports;
|
|
}());
|
|
|
|
if (typeof module !== 'undefined') {
|
|
module.exports = night_mode;
|
|
}
|
|
window.night_mode = night_mode;
|