summaryrefslogtreecommitdiff
path: root/layouts/_partials/scripts.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_partials/scripts.html')
-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)
}
})