From b570cfa8c9a8c878b0112d5b93d884e3eb3a28ef Mon Sep 17 00:00:00 2001 From: stonedDiscord Date: Sun, 11 Dec 2022 13:39:54 +0100 Subject: grab manifest file --- webAO/client/fetchLists.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'webAO/client') 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 -- cgit