Skip to content

Commit 30b2f8f

Browse files
heiskrchiedo
andauthored
Fix chrome not sending exit events (#16488)
Co-authored-by: Chiedo John <2156688+chiedo@users.noreply.github.com>
1 parent ca78629 commit 30b2f8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascripts/events.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ function getPerformance () {
125125
)
126126
const nav = performance?.getEntriesByType('navigation')?.[0]
127127
return {
128-
firstContentfulPaint: paint ? paint / 1000 : undefined,
128+
firstContentfulPaint: paint ? paint.startTime / 1000 : undefined,
129129
domInteractive: nav ? nav.domInteractive / 1000 : undefined,
130130
domComplete: nav ? nav.domComplete / 1000 : undefined,
131131
render: nav ? (nav.responseEnd - nav.requestStart) / 1000 : undefined

0 commit comments

Comments
 (0)