Skip to content

Commit

Permalink
actually call update rather than just getting it
Browse files Browse the repository at this point in the history
  • Loading branch information
keithamus committed Nov 7, 2022
1 parent e7c4e8d commit a376de1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/relative-time-element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const dateObserver = new (class {
const time = Date.now() + ms
if (time < this.time) {
clearTimeout(this.timer)
this.timer = setTimeout(() => this.update, ms)
this.timer = setTimeout(() => this.update(), ms)
this.time = time
}
}
Expand Down

0 comments on commit a376de1

Please sign in to comment.