From: Alexander Moisseev Date: Tue, 4 Nov 2025 10:16:06 +0000 (+0300) Subject: [Minor] WebUI: Fix theme toggle default to 'auto' X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b8bb30ca128979ca77cdd3f55434121588cf44cb;p=thirdparty%2Frspamd.git [Minor] WebUI: Fix theme toggle default to 'auto' Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- diff --git a/interface/js/app/rspamd.js b/interface/js/app/rspamd.js index ee8ad9830a..8aa288ac5d 100644 --- a/interface/js/app/rspamd.js +++ b/interface/js/app/rspamd.js @@ -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;