diff --git a/.dist/settings.js b/.dist/settings.js index ed94ffe..ed36a36 100644 --- a/.dist/settings.js +++ b/.dist/settings.js @@ -793,6 +793,10 @@ class Form { if (thing === "") continue; const input = this.names.get(thing); + if (input instanceof SelectInput) { + build[thing] = input.options[input.value]; + continue; + } build[thing] = input.value; } if (this.fetchURL !== "") { diff --git a/webpage/settings.ts b/webpage/settings.ts index d59f5d7..7f98425 100644 --- a/webpage/settings.ts +++ b/webpage/settings.ts @@ -794,6 +794,10 @@ class Form implements OptionsElement{ for(const thing of this.names.keys()){ if(thing==="") continue; const input=this.names.get(thing) as OptionsElement; + if(input instanceof SelectInput){ + build[thing]=input.options[input.value]; + continue; + } build[thing]=input.value; } if(this.fetchURL!==""){