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,11 +1,16 @@
|
||||
import { createElement } from "./createElement";
|
||||
|
||||
export function createOptionElement(text: string, value=""): HTMLOptionElement {
|
||||
let sanitizedValue: string = value;
|
||||
if (sanitizedValue === "") { sanitizedValue = text; }
|
||||
export function createOptionElement(
|
||||
text: string,
|
||||
value = "",
|
||||
): HTMLOptionElement {
|
||||
let sanitizedValue: string = value;
|
||||
if (sanitizedValue === "") {
|
||||
sanitizedValue = text;
|
||||
}
|
||||
|
||||
return createElement("option", {
|
||||
text: text,
|
||||
value: sanitizedValue,
|
||||
}) as HTMLOptionElement;
|
||||
return createElement("option", {
|
||||
text: text,
|
||||
value: sanitizedValue,
|
||||
}) as HTMLOptionElement;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user