Rebuilt frontmatter templates as template widgets

This commit is contained in:
Zef Hemel
2024-01-08 17:08:35 +01:00
parent 5b3dd500e4
commit 848e11a773
45 changed files with 471 additions and 483 deletions
+6 -1
View File
@@ -120,7 +120,12 @@ export async function readFile(
): Promise<{ data: Uint8Array; meta: FileMeta } | undefined> {
const url = federatedPathToUrl(name);
console.log("Fetching federated file", url);
const r = await nativeFetch(url);
const r = await nativeFetch(url, {
method: "GET",
headers: {
Accept: "application/octet-stream",
},
});
if (r.status === 503) {
throw new Error("Offline");
}