mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
ts: Convert night_mode module to TypeScript.
This commit is contained in:
committed by
Tim Abbott
parent
31abcaafb8
commit
6ed635b5ed
@@ -1,13 +1,13 @@
|
||||
import $ from "jquery";
|
||||
|
||||
export function enable() {
|
||||
export function enable(): void {
|
||||
$("body").removeClass("color-scheme-automatic").addClass("night-mode");
|
||||
}
|
||||
|
||||
export function disable() {
|
||||
export function disable(): void {
|
||||
$("body").removeClass("color-scheme-automatic").removeClass("night-mode");
|
||||
}
|
||||
|
||||
export function default_preference_checker() {
|
||||
export function default_preference_checker(): void {
|
||||
$("body").removeClass("night-mode").addClass("color-scheme-automatic");
|
||||
}
|
||||
Reference in New Issue
Block a user