1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-14 02:06:29 +00:00

Fix scheduled theme change timing

This commit is contained in:
Gonçalo Santos
2020-03-10 15:41:34 +00:00
parent 38ed5b8541
commit 48c8164689
3 changed files with 5 additions and 4 deletions

View File

@@ -10,8 +10,8 @@ const chooseTheme = ui => {
const minutes = now.getHours() * 60 + now.getMinutes()
const isEndAfterStart = end > start
const isBetweenStartAndEnd = minutes >= start && minutes <= end
const isBetweenEndAndStart = minutes >= start || minutes <= end
const isBetweenStartAndEnd = minutes >= start && minutes < end
const isBetweenEndAndStart = minutes >= start || minutes < end
if (
(isEndAfterStart && isBetweenStartAndEnd) ||