mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-21 08:42:53 +02:00
More bug fixes for Sleeve/Resleeve features. Rebalancing for Sleeve/Resleeve and stock market. Added an option to remove source files in the dev menu
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
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;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user