aboutsummaryrefslogtreecommitdiff
path: root/webAO
diff options
context:
space:
mode:
authorstonedDiscord <Tukz@gmx.de>2022-11-17 22:51:24 +0100
committerstonedDiscord <Tukz@gmx.de>2022-11-17 22:51:24 +0100
commitfbb4ce9fafab3183e27204eccad73c542cb684c8 (patch)
tree3c3b663e5f52769bf9b9655309e704376ce9f78e /webAO
parent2592bf4cb162cac88ecb52d036249ab52c16153c (diff)
custom is entry 0
Diffstat (limited to 'webAO')
-rw-r--r--webAO/client/fetchLists.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/webAO/client/fetchLists.ts b/webAO/client/fetchLists.ts
index e9772cb..7f0104e 100644
--- a/webAO/client/fetchLists.ts
+++ b/webAO/client/fetchLists.ts
@@ -26,7 +26,7 @@ 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 = "";
@@ -50,10 +50,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");
}