Skip to content

Commit d2cebce

Browse files
committed
Remove intentional throw on native XHR ...
This was for debugging purposes, and will always throw unless `install()` was called (most users).
1 parent 1a52395 commit d2cebce

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/raven.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1293,9 +1293,6 @@ Raven.prototype = {
12931293
_makeRequest: function(opts) {
12941294
var request = new XMLHttpRequest();
12951295

1296-
if (request.send.toString() === 'function send() { [native code] }') {
1297-
throw new Error('shouldnt get here');
1298-
}
12991296
// if browser doesn't support CORS (e.g. IE7), we are out of luck
13001297
var hasCORS =
13011298
'withCredentials' in request ||

0 commit comments

Comments
 (0)