mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-19 15:54:09 +02:00
prettify, sorry for the big ass commit
This commit is contained in:
@@ -1,13 +1,25 @@
|
||||
export function getSelectValue(selector: HTMLSelectElement | null): string {
|
||||
if (selector == null) { return ""; }
|
||||
if (selector.options.length <= 0) { return ""; }
|
||||
if (selector.selectedIndex < 0) { return ""; }
|
||||
return selector.options[selector.selectedIndex].value;
|
||||
if (selector == null) {
|
||||
return "";
|
||||
}
|
||||
if (selector.options.length <= 0) {
|
||||
return "";
|
||||
}
|
||||
if (selector.selectedIndex < 0) {
|
||||
return "";
|
||||
}
|
||||
return selector.options[selector.selectedIndex].value;
|
||||
}
|
||||
|
||||
export function getSelectText(selector: HTMLSelectElement | null): string {
|
||||
if (selector == null) { return ""; }
|
||||
if (selector.options.length <= 0) { return ""; }
|
||||
if (selector.selectedIndex < 0) { return ""; }
|
||||
return selector.options[selector.selectedIndex].text;
|
||||
if (selector == null) {
|
||||
return "";
|
||||
}
|
||||
if (selector.options.length <= 0) {
|
||||
return "";
|
||||
}
|
||||
if (selector.selectedIndex < 0) {
|
||||
return "";
|
||||
}
|
||||
return selector.options[selector.selectedIndex].text;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user