Skip to content

Commit e7c4e8d

Browse files
authored
ensure first observer is called at correct time
1 parent 709a65b commit e7c4e8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/relative-time-element.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function getUnitFactor(ms: number): number {
2828

2929
const dateObserver = new (class {
3030
elements: Set<RelativeTimeElement> = new Set()
31-
time = 0
31+
time = Infinity
3232

3333
observe(element: RelativeTimeElement) {
3434
if (this.elements.has(element)) return

0 commit comments

Comments
 (0)