mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-18 15:28:43 +02:00
Fixed bugs with Sleeve mechanics. Updated documentation to use RTD theme
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
export function getSelectValue(selector: HTMLSelectElement | null): string {
|
||||
if (selector == null) { return ""; }
|
||||
return selector[selector.selectedIndex].value;
|
||||
if (selector.options.length <= 0) { return ""; }
|
||||
return selector.options[selector.selectedIndex].value;
|
||||
}
|
||||
|
||||
export function getSelectText(selector: HTMLSelectElement | null): string {
|
||||
if (selector == null) { return ""; }
|
||||
return selector[selector.selectedIndex].text;
|
||||
if (selector.options.length <= 0) { return ""; }
|
||||
return selector.options[selector.selectedIndex].text;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user