From ab0f36df249d8af4dedaa15690af80812481004d Mon Sep 17 00:00:00 2001 From: Andrew Leonard Date: Sat, 15 Jun 2024 04:10:16 -0400 Subject: [PATCH] defaults theme to dark --- assets/js/theme.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/js/theme.js b/assets/js/theme.js index 07a7fe248000..7a09310f256f 100644 --- a/assets/js/theme.js +++ b/assets/js/theme.js @@ -201,11 +201,11 @@ let transTheme = () => { }, 500); }; -// Determine the expected state of the theme toggle, which can be "dark" or "light". Default is "light". +// Determine the expected state of the theme toggle, which can be "dark" or "light". Default is "dark". let determineThemeSetting = () => { let themeSetting = localStorage.getItem("theme"); if (themeSetting != "dark" && themeSetting != "light") { - themeSetting = "light"; + themeSetting = "dark"; } return themeSetting; };