From adc96b5ea99d6a7ecb1c0a1fb718383fbacb9385 Mon Sep 17 00:00:00 2001 From: eltrac Date: Sun, 27 Sep 2026 09:15:06 +0800 Subject: fix(themeSwitch): default select option to auto --- layouts/_partials/scripts.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/_partials/scripts.html b/layouts/_partials/scripts.html index 2c63748..ace730e 100644 --- a/layouts/_partials/scripts.html +++ b/layouts/_partials/scripts.html @@ -3,7 +3,7 @@ document.addEventListener("DOMContentLoaded", () => { const themeSelect = document.getElementById('theme-select') if (themeSelect) { - themeSelect.value = localStorage.getItem('geedeapro.theme') + themeSelect.value = localStorage.getItem('geedeapro.theme') || 'auto' themeSelect.onchange = () => switchTheme(themeSelect.value, true) } }) -- cgit v1.2.3