]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] WebUI: Fix theme toggle default to 'auto'
authorAlexander Moisseev <moiseev@mezonplus.ru>
Tue, 4 Nov 2025 10:16:06 +0000 (13:16 +0300)
committerGitHub <noreply@github.com>
Tue, 4 Nov 2025 10:16:06 +0000 (13:16 +0300)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
interface/js/app/rspamd.js

index ee8ad9830a4d43a3f8138d863d5cba89a279dd89..8aa288ac5d07b0a5bfcf915f61260b0f4edc7924 100644 (file)
@@ -522,7 +522,7 @@ define(["jquery", "app/common", "stickytabs", "visibility",
 
     $("#theme-toggle").on("click", (e) => {
         e.preventDefault();
-        const currentTheme = localStorage.getItem("theme") || "light";
+        const currentTheme = localStorage.getItem("theme") || "auto";
         // eslint-disable-next-line no-useless-assignment
         let newTheme = null;