From 6ce4a254e4fbf38a1118ddacf0e8f3050e23f3f8 Mon Sep 17 00:00:00 2001 From: jeffreytse Date: Thu, 15 Oct 2020 17:05:26 +0800 Subject: fix: wrong default value of night mode --- _includes/extensions/theme-toggle.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '_includes/extensions/theme-toggle.html') 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') { -- cgit v1.2.3