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:
@@ -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) ||
|
||||
|
||||
Reference in New Issue
Block a user