File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ declare const __SENTRY_RELEASE__: string | undefined;
172
172
export function init ( browserOptions : BrowserOptions = { } ) : Client | undefined {
173
173
const options = applyDefaultOptions ( browserOptions ) ;
174
174
175
- if ( ! options . skipBrowserExtensionCheck && shouldShowBrowserExtensionError ( ) ) {
175
+ if ( DEBUG_BUILD && ! options . skipBrowserExtensionCheck && shouldShowBrowserExtensionError ( ) ) {
176
176
consoleSandbox ( ( ) => {
177
177
// eslint-disable-next-line no-console
178
178
console . error (
@@ -182,12 +182,10 @@ export function init(browserOptions: BrowserOptions = {}): Client | undefined {
182
182
return ;
183
183
}
184
184
185
- if ( DEBUG_BUILD ) {
186
- if ( ! supportsFetch ( ) ) {
187
- logger . warn (
188
- 'No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill.' ,
189
- ) ;
190
- }
185
+ if ( DEBUG_BUILD && ! supportsFetch ( ) ) {
186
+ logger . warn (
187
+ 'No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill.' ,
188
+ ) ;
191
189
}
192
190
const clientOptions : BrowserClientOptions = {
193
191
...options ,
You can’t perform that action at this time.
0 commit comments