Fix http getter return format.

This commit is contained in:
Spencer Ofwiti 2021-05-18 18:04:20 +03:00
parent 57cc5609a7
commit ecd9d72124

View File

@ -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));
}