summaryrefslogtreecommitdiff
path: root/_includes/extensions/theme-toggle.html
diff options
context:
space:
mode:
authorjeffreytse <jeffreytse.mail@gmail.com>2020-10-15 17:05:26 +0800
committerjeffreytse <jeffreytse.mail@gmail.com>2020-10-15 17:05:26 +0800
commit6ce4a254e4fbf38a1118ddacf0e8f3050e23f3f8 (patch)
tree96743c090e6f8ebafd9f39748327dd7dcac0a84c /_includes/extensions/theme-toggle.html
parentc05a6e49c3ace7b4626eced8838ea3cd88a78ba1 (diff)
fix: wrong default value of night mode
Diffstat (limited to '_includes/extensions/theme-toggle.html')
-rw-r--r--_includes/extensions/theme-toggle.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/_includes/extensions/theme-toggle.html b/_includes/extensions/theme-toggle.html
index df04c29..623c425 100644
--- a/_includes/extensions/theme-toggle.html
+++ b/_includes/extensions/theme-toggle.html
@@ -81,7 +81,7 @@
handleThemeToggle(event.target.checked);
});
- var nightModeOption = '{{ night_mode }}';
+ var nightModeOption = '{{ night_mode }}' || 'auto';
nightModeOption = nightModeOption.toLowerCase();
if (nightModeOption == 'auto') {