fix refactor error in xhr, breaking it
This commit is contained in:
parent
e70f0d3e89
commit
b1cb797919
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ export function xhrRequest(url, options) {
|
||||||
const {status} = xhr;
|
const {status} = xhr;
|
||||||
let body = null;
|
let body = null;
|
||||||
if (xhr.getResponseHeader("Content-Type") === "application/json") {
|
if (xhr.getResponseHeader("Content-Type") === "application/json") {
|
||||||
body = JSON.parse(body);
|
body = JSON.parse(xhr.responseText);
|
||||||
}
|
}
|
||||||
return {status, body};
|
return {status, body};
|
||||||
});
|
});
|
||||||
|
|
Reference in a new issue