aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstonedDiscord <Tukz@gmx.de>2022-12-11 13:39:54 +0100
committerstonedDiscord <Tukz@gmx.de>2022-12-11 13:39:54 +0100
commitb570cfa8c9a8c878b0112d5b93d884e3eb3a28ef (patch)
tree8bb88b02ddd5b69e081eb31eb965d92c7ee8dfbe
parent2000fd9f433f470be461b4573eeb7f02bae8e8a3 (diff)
grab manifest file
-rw-r--r--webAO/client/fetchLists.ts12
1 files changed, 12 insertions, 0 deletions
diff --git a/webAO/client/fetchLists.ts b/webAO/client/fetchLists.ts
index 38c3236..cedd744 100644
--- a/webAO/client/fetchLists.ts
+++ b/webAO/client/fetchLists.ts
@@ -61,4 +61,16 @@ export const fetchEvidenceList = async () => {
} catch (err) {
console.warn("there was no evidence.json file");
}
+}
+
+
+export const fetchManifest = async () => {
+ try {
+ const manifestdata = await request(`${AO_HOST}manifest.txt`);
+ const manifest_array = manifestdata.split(/\r\n|\n\r|\n|\r/);
+ // the try catch will fail before here when there is no file
+
+ } catch (err) {
+ console.warn("there was no manifest.txt file");
+ }
} \ No newline at end of file