We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 268fcf5 commit b97c649Copy full SHA for b97c649
src/raven.js
@@ -606,6 +606,22 @@ Raven.prototype = {
606
}
607
});
608
609
+ var origSend;
610
+ if ('XMLHttpRequest' in window) {
611
+ origSend = XMLHttpRequest.prototype.send;
612
+ XMLHttpRequest.prototype.send = function (data) { // preserve arity
613
+ var xhr = this;
614
+ 'onreadystatechange onload onerror onprogress'.replace(/\w+/g, function (prop) {
615
+ if (prop in xhr && Object.prototype.toString.call(xhr[prop]) === '[object Function]') {
616
+ fill(xhr, prop, function (orig) {
617
+ return self.wrap(orig);
618
+ });
619
+ }
620
621
+ origSend.apply(this, arguments);
622
623
624
+
625
},
626
627
_drainPlugins: function() {
0 commit comments