mirror of
https://github.com/zulip/zulip.git
synced 2025-10-29 11:03:54 +00:00
ES and TypeScript modules are strict by default and don’t need this directive. ESLint will remind us to add it to new CommonJS files and remove it from ES and TypeScript modules. Signed-off-by: Anders Kaseorg <anders@zulip.com>
16 lines
401 B
JavaScript
16 lines
401 B
JavaScript
"use strict";
|
|
|
|
exports.enable = function () {
|
|
$("body").removeClass("color-scheme-automatic").addClass("night-mode");
|
|
};
|
|
|
|
exports.disable = function () {
|
|
$("body").removeClass("color-scheme-automatic").removeClass("night-mode");
|
|
};
|
|
|
|
exports.default_preference_checker = function () {
|
|
$("body").removeClass("night-mode").addClass("color-scheme-automatic");
|
|
};
|
|
|
|
window.night_mode = exports;
|