From 315a5db44db1ff5d1672b336a4847b56a4f9def9 Mon Sep 17 00:00:00 2001 From: odanado Date: Mon, 9 Sep 2024 20:45:17 +0900 Subject: [PATCH] fix(browser): check supportedEntryTypes before caling the function (#13541) `PerformanceObserver` is available on iOS 11 and later, but the `supportedEntryTypes` method is available on iOS 13 and later. ref: https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserver Therefore, a runtime error will occur if we use Sentry on iOS 11 or iOS 12. --- packages/browser/src/tracing/browserTracingIntegration.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/browser/src/tracing/browserTracingIntegration.ts b/packages/browser/src/tracing/browserTracingIntegration.ts index ff5201878cff..523edd7e4262 100644 --- a/packages/browser/src/tracing/browserTracingIntegration.ts +++ b/packages/browser/src/tracing/browserTracingIntegration.ts @@ -218,6 +218,7 @@ export const browserTracingIntegration = ((_options: Partial