Compare commits
1 Commits
master
...
spencer/ac
Author | SHA1 | Date | |
---|---|---|---|
|
9e293b822c |
@ -6,7 +6,7 @@ HttpGetter.prototype.get = (filename) =>
|
|||||||
new Promise((resolve, reject) => {
|
new Promise((resolve, reject) => {
|
||||||
fetch(filename).then((response) => {
|
fetch(filename).then((response) => {
|
||||||
if (response.ok) {
|
if (response.ok) {
|
||||||
resolve(response.json());
|
resolve(response.text());
|
||||||
} else {
|
} else {
|
||||||
reject(rejectBody(response));
|
reject(rejectBody(response));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user