diff --git a/lib/client.js b/lib/client.js index 41386b9..e83ec5c 100644 --- a/lib/client.js +++ b/lib/client.js @@ -67,7 +67,7 @@ extend(Raven.prototype, { // default to 30, don't allow higher than 100 this.maxBreadcrumbs = Math.max(0, Math.min(options.maxBreadcrumbs || 30, 100)); - this.captureUnhandledRejections = options.captureUnhandledRejections; + this.captureUnhandledRejections = options.captureUnhandledRejections === false ? false : true; this.loggerName = options.logger; this.dataCallback = options.dataCallback; this.shouldSendCallback = options.shouldSendCallback;