summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreltrac <hi@eltr.ac>2026-09-27 09:15:06 +0800
committereltrac <hi@eltr.ac>2026-09-27 09:15:06 +0800
commitadc96b5ea99d6a7ecb1c0a1fb718383fbacb9385 (patch)
treedc84d7f14c87cd229561e100385fe9208733207c
parent288dbc2c2c9b33132d918d2efa93bfbb08b8a208 (diff)
fix(themeSwitch): default select option to auto
-rw-r--r--layouts/_partials/scripts.html2
1 files changed, 1 insertions, 1 deletions
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)
}
})