Skip to content

Commit c565329

Browse files
authored
fix: Always trigger default browser onerror handler (#2348)
1 parent 95ea37e commit c565329

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/browser/src/integrations/globalhandlers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export class GlobalHandlers implements Integration {
9292
if (self._oldOnErrorHandler) {
9393
return self._oldOnErrorHandler.apply(this, arguments);
9494
}
95-
return true;
95+
return false;
9696
}
9797

9898
const client = currentHub.getClient();
@@ -121,7 +121,7 @@ export class GlobalHandlers implements Integration {
121121
return self._oldOnErrorHandler.apply(this, arguments);
122122
}
123123

124-
return true;
124+
return false;
125125
};
126126

127127
this._onErrorHandlerInstalled = true;

0 commit comments

Comments
 (0)