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 cea33b8 commit c47f4c2Copy full SHA for c47f4c2
src/raven.js
@@ -1118,14 +1118,15 @@ Raven.prototype = {
1118
var xhr = this;
1119
1120
function onreadystatechangeHandler() {
1121
- if (xhr.__raven_xhr && (xhr.readyState === 1 || xhr.readyState === 4)) {
+ if (xhr.__raven_xhr && xhr.readyState === 4) {
1122
try {
1123
// touching statusCode in some platforms throws
1124
// an exception
1125
xhr.__raven_xhr.status_code = xhr.status;
1126
} catch (e) {
1127
/* do nothing */
1128
}
1129
+
1130
self.captureBreadcrumb({
1131
type: 'http',
1132
category: 'xhr',
0 commit comments