Skip to content

Commit f5318ff

Browse files
authored
Update utils.js
1 parent 0d3b04f commit f5318ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,8 +297,8 @@ let axios = {
297297

298298
const xmlhttp = new XMLHttpRequest();
299299

300-
xmlhttp.onreadystatechange = () => {
301-
if (xmlhttp.readyState == 4 && (xmlhttp.status == 201 || xmlhttp.status == 200)) {
300+
xmlhttp.onreadystatechange = function() {
301+
if (this.readyState == 4 && (this.status == 201 || this.status == 200)) {
302302
resolve(JSON.parse(xmlhttp.responseText));
303303
}
304304
};

0 commit comments

Comments
 (0)