We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d3b04f commit f5318ffCopy full SHA for f5318ff
utils.js
@@ -297,8 +297,8 @@ let axios = {
297
298
const xmlhttp = new XMLHttpRequest();
299
300
- xmlhttp.onreadystatechange = () => {
301
- if (xmlhttp.readyState == 4 && (xmlhttp.status == 201 || xmlhttp.status == 200)) {
+ xmlhttp.onreadystatechange = function() {
+ if (this.readyState == 4 && (this.status == 201 || this.status == 200)) {
302
resolve(JSON.parse(xmlhttp.responseText));
303
}
304
};
0 commit comments