From c1e4dc5ccc7a40f7acb3a793eb73bc3f64bbbd54 Mon Sep 17 00:00:00 2001 From: Sahil Batra Date: Fri, 26 Nov 2021 13:10:04 +0530 Subject: [PATCH] zcommand: Rename enter_night_mode to switch_to_dark_theme. --- static/js/zcommand.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/zcommand.js b/static/js/zcommand.js index 44a66e46b1..e93494e929 100644 --- a/static/js/zcommand.js +++ b/static/js/zcommand.js @@ -81,7 +81,7 @@ export function enter_day_mode() { }); } -export function enter_night_mode() { +export function switch_to_dark_theme() { send({ command: "/night", on_success(data) { @@ -174,7 +174,7 @@ export function process(message_content) { const night_commands = ["/night", "/dark"]; if (night_commands.includes(content)) { - enter_night_mode(); + switch_to_dark_theme(); return true; }