From bebecbe11079fa6738f706855fad5ffa02cd225c Mon Sep 17 00:00:00 2001 From: Jeff Whelpley Date: Fri, 23 Dec 2016 12:45:01 -0500 Subject: [PATCH] sending kwargs into shouldSendCallback() --- lib/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/client.js b/lib/client.js index 1e069d6..ea40a35 100644 --- a/lib/client.js +++ b/lib/client.js @@ -182,7 +182,7 @@ extend(Raven.prototype, { var shouldSend = true; if (!this._enabled) shouldSend = false; - if (this.shouldSendCallback && !this.shouldSendCallback()) shouldSend = false; + if (this.shouldSendCallback && !this.shouldSendCallback(kwargs)) shouldSend = false; if (shouldSend) { this.send(kwargs, cb);