Skip to content

Commit

Permalink
Fix chrome not sending exit events (github#16488)
Browse files Browse the repository at this point in the history
Co-authored-by: Chiedo John <[email protected]>
  • Loading branch information
heiskr and chiedo authored Nov 19, 2020
1 parent ca78629 commit 30b2f8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion javascripts/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ function getPerformance () {
)
const nav = performance?.getEntriesByType('navigation')?.[0]
return {
firstContentfulPaint: paint ? paint / 1000 : undefined,
firstContentfulPaint: paint ? paint.startTime / 1000 : undefined,
domInteractive: nav ? nav.domInteractive / 1000 : undefined,
domComplete: nav ? nav.domComplete / 1000 : undefined,
render: nav ? (nav.responseEnd - nav.requestStart) / 1000 : undefined
Expand Down

0 comments on commit 30b2f8f

Please sign in to comment.