This commit is contained in:
Rich Harris
2018-06-28 12:03:27 -04:00
parent 5c4e4d5d36
commit 2205b8aec5

View File

@@ -19,7 +19,7 @@
return this.error(500, 'something went wrong');
}
return fetch(`blog/${slug}.json`).then(async r => {
return fetch(`blog/${slug}.json`).then(r => {
if (r.status === 200) {
return r.json().then(post => ({ post }));
this.error(r.status, '')