Skip to content

Commit

Permalink
feat(packages/sui-react-web-vitals): add visibilityState property
Browse files Browse the repository at this point in the history
  • Loading branch information
nucliweb committed Nov 7, 2023
1 parent 08914a8 commit ee5c0e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/sui-react-web-vitals/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ export default function WebVitalsReporter({
path: hasPathOnRoute ? pathname : getNormalizedPathname(pathname),
target,
loadState: attribution.loadState,
...(attribution.eventType && {eventType: attribution.eventType})
...(attribution.eventType && {eventType: attribution.eventType}),
visibilityState: document.visibilityState
})
}

Expand Down

0 comments on commit ee5c0e1

Please sign in to comment.