diff options
| author | eltrac <hi@eltr.ac> | 2026-09-27 09:15:06 +0800 |
|---|---|---|
| committer | eltrac <hi@eltr.ac> | 2026-09-27 09:15:06 +0800 |
| commit | adc96b5ea99d6a7ecb1c0a1fb718383fbacb9385 (patch) | |
| tree | dc84d7f14c87cd229561e100385fe9208733207c | |
| parent | 288dbc2c2c9b33132d918d2efa93bfbb08b8a208 (diff) | |
fix(themeSwitch): default select option to auto
| -rw-r--r-- | layouts/_partials/scripts.html | 2 |
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) } }) |
