Skip to content

Commit

Permalink
Merge pull request #1656 from SUI-Components/feat/add-visibilityState…
Browse files Browse the repository at this point in the history
…-property

feat(packages/sui-react-web-vitals): add visibilityState property
  • Loading branch information
nucliweb authored Nov 7, 2023
2 parents 08914a8 + ee5c0e1 commit 1d20f4f
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 1d20f4f

Please sign in to comment.