Skip to content

Commit

Permalink
Fix date format option applying last applied #455
Browse files Browse the repository at this point in the history
  • Loading branch information
victrme committed Sep 28, 2024
1 parent 6840f5f commit 0702bef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/scripts/features/clock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ async function clockUpdate(update: ClockUpdate) {
}

if (isDateFormat(update.dateformat)) {
data.dateformat = update.dateformat
storage.sync.set({ dateformat: update.dateformat })
}

Expand Down Expand Up @@ -134,6 +135,7 @@ async function clockUpdate(update: ClockUpdate) {
clock: data.clock,
worldclocks: data.worldclocks,
analogstyle: analogstyle,
dateformat: data.dateformat,
})

startClock(data.clock, data.worldclocks, data.greeting, data.dateformat)
Expand Down

0 comments on commit 0702bef

Please sign in to comment.