Skip to content

Commit

Permalink
Review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
tunetheweb committed Oct 22, 2024
1 parent bc5db2c commit 16f4a51
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/lib/getNavigationEntry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@

export const getNavigationEntry = (): PerformanceNavigationTiming | void => {
// JSDOM does not implement getEntriesByType: https://github.com/jsdom/jsdom/issues/3309
const navigationEntry =
self.performance &&
performance.getEntriesByType &&
performance.getEntriesByType('navigation')[0];
const navigationEntry = performance.getEntriesByType?.('navigation')[0];

// Check to ensure the `responseStart` property is present and valid.
// In some cases a zero value is reported by the browser (for
Expand Down

0 comments on commit 16f4a51

Please sign in to comment.