From c61c78153d0880d94486137deb2ce83a09009860 Mon Sep 17 00:00:00 2001 From: Aleteoryx Date: Fri, 6 Sep 2024 16:13:10 -0400 Subject: [PATCH] allow multiple mountpoints --- index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index fc5f8e5..b2b2620 100644 --- a/index.html +++ b/index.html @@ -64,18 +64,18 @@ async function parse_and_fetch_parts(metadata) { format = await Promise.all( format.map(x => - fetch(`/templates/${x.file}`).then(r => r.text()) + fetch(`${location}/templates/${x.file}`).then(r => r.text()) .then(c => ({...x, contents: c})))); metadata.format = format; return metadata; } -const metafiles = await fetch("/templates/list.txt") +const metafiles = await fetch(`${location}/templates/list.txt`) .then(r => r.text()) .then(x => x.split("\n").filter(x => x != "") - .map(x => `/templates/${x.trim()}/meta.json`)); + .map(x => `${location}/templates/${x.trim()}/meta.json`)); const metadata = await Promise.all( metafiles.map(x => fetch(x).then(r => r.json()))); -- 2.43.4