Skip to content

Commit 76473ae

Browse files
committed
fix edge case
1 parent 0789636 commit 76473ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/browser/src/sdk.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ export function init(options: BrowserOptions = {}): Client | undefined {
9191
!options.skipBrowserExtensionCheck && checkAndWarnIfIsEmbeddedBrowserExtension();
9292

9393
const clientOptions: BrowserClientOptions = {
94-
enabled: !shouldDisableBecauseIsBrowserExtenstion,
9594
...options,
95+
enabled: shouldDisableBecauseIsBrowserExtenstion ? false : options.enabled,
9696
stackParser: stackParserFromStackParserOptions(options.stackParser || defaultStackParser),
9797
integrations: getIntegrationsToSetup({
9898
integrations: options.integrations,

0 commit comments

Comments
 (0)