Skip to content

Commit

Permalink
check supportedEntryTypes before caling the function
Browse files Browse the repository at this point in the history
  • Loading branch information
odanado committed Aug 30, 2024
1 parent f452423 commit d8fd117
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/browser/src/tracing/browserTracingIntegration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ export const browserTracingIntegration = ((_options: Partial<BrowserTracingOptio
if (
enableLongAnimationFrame &&
GLOBAL_OBJ.PerformanceObserver &&
PerformanceObserver.supportedEntryTypes &&
PerformanceObserver.supportedEntryTypes.includes('long-animation-frame')
) {
startTrackingLongAnimationFrames();
Expand Down

0 comments on commit d8fd117

Please sign in to comment.