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