diff options
| author | stonedDiscord <Tukz@gmx.de> | 2022-12-11 16:28:42 +0100 |
|---|---|---|
| committer | stonedDiscord <Tukz@gmx.de> | 2022-12-11 16:28:42 +0100 |
| commit | 74f4a34a8c8173863f96fbc03bb9026930219623 (patch) | |
| tree | d11a0f10865b0f666a97d17954d1fc7fa0971a8f /webAO/client/fetchLists.ts | |
| parent | b570cfa8c9a8c878b0112d5b93d884e3eb3a28ef (diff) | |
store manifest in client
Diffstat (limited to 'webAO/client/fetchLists.ts')
| -rw-r--r-- | webAO/client/fetchLists.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/webAO/client/fetchLists.ts b/webAO/client/fetchLists.ts index cedd744..9efd181 100644 --- a/webAO/client/fetchLists.ts +++ b/webAO/client/fetchLists.ts @@ -1,3 +1,4 @@ +import { client } from "../client"; import { AO_HOST } from "./aoHost"; import { request } from "../services/request.js"; @@ -67,7 +68,7 @@ export const fetchEvidenceList = async () => { export const fetchManifest = async () => { try { const manifestdata = await request(`${AO_HOST}manifest.txt`); - const manifest_array = manifestdata.split(/\r\n|\n\r|\n|\r/); + client.manifest = manifestdata.split(/\r\n|\n\r|\n|\r/); // the try catch will fail before here when there is no file } catch (err) { |
