Commit 315a5db
authored
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.1 parent 8eaa562 commit 315a5db
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
| 221 | + | |
221 | 222 | | |
222 | 223 | | |
223 | 224 | | |
| |||
0 commit comments