Merge pull request 'fix dark mode scheduling logic' (#39) from dark-mode-schedule into main

Reviewed-on: #39
This commit was merged in pull request #39.
This commit is contained in:
2026-03-26 18:38:59 +01:00
+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) {