We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 776caaa commit 3f21412Copy full SHA for 3f21412
src/raven.js
@@ -18,6 +18,7 @@ var urlencode = utils.urlencode;
18
var uuid4 = utils.uuid4;
19
var htmlTreeAsString = utils.htmlTreeAsString;
20
var parseUrl = utils.parseUrl;
21
+var isString = utils.isString;
22
23
var wrapConsoleMethod = require('./console').wrapMethod;
24
@@ -837,7 +838,7 @@ Raven.prototype = {
837
838
return function (method, url) { // preserve arity
839
840
// if Sentry key appears in URL, don't capture
- if (url.indexOf(self._globalKey) === -1) {
841
+ if (isString(url) && url.indexOf(self._globalKey) === -1) {
842
this.__raven_xhr = {
843
method: method,
844
url: url,
0 commit comments