fix dark mode scheduling logic #39

Merged
zach merged 1 commits from dark-mode-schedule into main 2026-03-26 18:39:00 +01:00
Showing only changes of commit d752d70526 - Show all commits
+1 -1
View File
@@ -40,7 +40,7 @@ Singleton {
} }
function checkStartup() { function checkStartup() {
if (darkStart === darkEnd) if (!root.enabled)
return; return;
var now = new Date(); var now = new Date();
if (now.getHours() >= darkStart || now.getHours() < darkEnd) { if (now.getHours() >= darkStart || now.getHours() < darkEnd) {