There was an error while loading. Please reload this page.
supportsNativeFetch
1 parent 365491f commit 4a25c19Copy full SHA for 4a25c19
1 file changed
packages/browser/src/integrations/httpclient.ts
@@ -10,7 +10,6 @@ import {
10
getClient,
11
GLOBAL_OBJ,
12
isSentryRequestUrl,
13
- supportsNativeFetch,
14
} from '@sentry/core/browser';
15
import { addXhrInstrumentationHandler, SENTRY_XHR_DATA_KEY } from '@sentry/browser-utils';
16
import { DEBUG_BUILD } from '../debug-build';
@@ -281,10 +280,6 @@ function _isInGivenStatusRanges(
281
280
* Wraps `fetch` function to capture request and response data
282
*/
283
function _wrapFetch(client: Client, options: HttpClientOptions): void {
284
- if (!supportsNativeFetch()) {
285
- return;
286
- }
287
-
288
addFetchInstrumentationHandler(handlerData => {
289
if (getClient() !== client) {
290
return;
0 commit comments