Skip to content

Is it possible to output a warning "No Fetch API detected."? #16284

Closed
@jihea-park

Description

@jihea-park

Description

https://github.com/getsentry/sentry-javascript/blob/develop/packages/browser/src/sdk.ts#L190

I am studying sentry/browser code.

Initially, logger.enabled is set to false.

In the initAndBind function of sentry/core, logger.enable() is called, and the logger is enabled from then on.

However, logger.warn('No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill.',); exists above the initAndBind function.

Is it possible to output a warning "No Fetch API detected."?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions