Fix http getter return format.
This commit is contained in:
parent
57cc5609a7
commit
ecd9d72124
@ -6,7 +6,7 @@ HttpGetter.prototype.get = (filename) =>
|
||||
new Promise((resolve, reject) => {
|
||||
fetch(filename).then((response) => {
|
||||
if (response.ok) {
|
||||
resolve(response.json());
|
||||
resolve(response.text());
|
||||
} else {
|
||||
reject(rejectBody(response));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user