Static site hosting via tangled

Add headers

Changed files
+5 -1
src
+5 -1
src/pages-service.js
···
if (this.verbose) {
console.log(`Fetching ${url}`);
}
-
const res = await fetch(url);
+
const res = await fetch(url, {
+
headers: {
+
Accept: "application/json",
+
},
+
});
const blob = await res.json();
const content = blob.contents;
this.fileCache.set(filename, content);