mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-21 16:52:55 +02:00
Implemented Sleeve UI. Compiled but untested
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import { createElement } from "./createElement";
|
||||
|
||||
export function createOptionElement(text: string, value: string="") {
|
||||
const sanitizedValue: string = value;
|
||||
export function createOptionElement(text: string, value: string=""): HTMLOptionElement {
|
||||
let sanitizedValue: string = value;
|
||||
if (sanitizedValue === "") { sanitizedValue = text; }
|
||||
|
||||
return createElement("option", {
|
||||
text: text,
|
||||
value: sanitizedValue,
|
||||
});
|
||||
}) as HTMLOptionElement;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user