Fix httpgeter.

This commit is contained in:
Spencer Ofwiti 2021-05-18 18:01:52 +03:00
parent a16e8c9242
commit 9e293b822c

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