Skip to content

Commit bbb947b

Browse files
committed
small ref
1 parent 4a72b76 commit bbb947b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/browser-utils/src/metrics/browserMetrics.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ interface AddPerformanceEntriesOptions {
300300
/** Add performance related spans to a transaction */
301301
export function addPerformanceEntries(span: Span, options: AddPerformanceEntriesOptions): void {
302302
const performance = getBrowserPerformanceAPI();
303-
if (!performance || !WINDOW.performance.getEntries || !browserPerformanceTimeOrigin) {
303+
if (!performance || !performance.getEntries || !browserPerformanceTimeOrigin) {
304304
// Gatekeeper if performance API not available
305305
return;
306306
}
@@ -352,7 +352,6 @@ export function addPerformanceEntries(span: Span, options: AddPerformanceEntries
352352
_addResourceSpans(span, entry as PerformanceResourceTiming, entry.name, startTime, duration, timeOrigin);
353353
break;
354354
}
355-
default:
356355
// Ignore other entry types.
357356
}
358357
});

0 commit comments

Comments
 (0)