diff options
Diffstat (limited to 'webAO/client')
| -rw-r--r-- | webAO/client/fetchLists.ts | 12 |
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 |
