diff options
Diffstat (limited to 'webAO/client/fetchLists.ts')
| -rw-r--r-- | webAO/client/fetchLists.ts | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/webAO/client/fetchLists.ts b/webAO/client/fetchLists.ts index e9772cb..bf4fd1b 100644 --- a/webAO/client/fetchLists.ts +++ b/webAO/client/fetchLists.ts @@ -26,10 +26,12 @@ export const fetchCharacterList = async () => { // the try catch will fail before here when there is no file const char_select = <HTMLSelectElement>( - document.getElementById("client_ininame") + document.getElementById("client_iniselect") ); char_select.innerHTML = ""; + char_select.add(new Option("Custom", "0")); + char_array.forEach((character: string) => { char_select.add(new Option(character)); }); @@ -50,10 +52,12 @@ export const fetchEvidenceList = async () => { ); evi_select.innerHTML = ""; + evi_select.add(new Option("Custom", "0")); + evi_array.forEach((evi: string) => { evi_select.add(new Option(evi)); }); - evi_select.add(new Option("Custom", "0")); + } catch (err) { console.warn("there was no evidence.json file"); } |
