Skip to content

Commit

Permalink
fix conditional to capture uncaught exceptions (#184)
Browse files Browse the repository at this point in the history
  • Loading branch information
waltjones authored Dec 18, 2023
1 parent b1886fb commit e07f7e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class Client {
const previousHandler = ErrorUtils.getGlobalHandler();

ErrorUtils.setGlobalHandler((error, isFatal) => {
if (this.config.captureUncaught && this.config.shouldSend()) {
if (this.config.options.captureUncaught && this.config.shouldSend()) {
this.error(error, undefined, (queued) => {
if (previousHandler) {
previousHandler(error, isFatal);
Expand Down

0 comments on commit e07f7e6

Please sign in to comment.