fix request function return value to include status value
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
This commit is contained in:
parent
2df5284d90
commit
0caaded1a5
@ -151,6 +151,7 @@ async function request (url, content) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
let data = await response.json();
|
let data = await response.json();
|
||||||
|
data.status = response.status;
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user