diff options
author | jeffreytse <jeffreytse.mail@gmail.com> | 2020-10-15 17:05:26 +0800 |
---|---|---|
committer | jeffreytse <jeffreytse.mail@gmail.com> | 2020-10-15 17:05:26 +0800 |
commit | 6ce4a254e4fbf38a1118ddacf0e8f3050e23f3f8 (patch) | |
tree | 96743c090e6f8ebafd9f39748327dd7dcac0a84c | |
parent | c05a6e49c3ace7b4626eced8838ea3cd88a78ba1 (diff) |
fix: wrong default value of night mode
-rw-r--r-- | _includes/extensions/theme-toggle.html | 2 |
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') { |