fix: wrong default value of night mode

This commit is contained in:
jeffreytse 2020-10-15 17:05:26 +08:00
parent c05a6e49c3
commit 6ce4a254e4

View file

@ -81,7 +81,7 @@
handleThemeToggle(event.target.checked);
});
var nightModeOption = '{{ night_mode }}';
var nightModeOption = '{{ night_mode }}' || 'auto';
nightModeOption = nightModeOption.toLowerCase();
if (nightModeOption == 'auto') {