ice edito, change to new byId

This commit is contained in:
kruschen 2024-09-07 12:48:00 +00:00
parent 21abd9efd5
commit b4b7ee00c1

View file

@ -21,7 +21,7 @@ export function open() {
const type = elSelected.attr("type") ? "Glacier" : "Iceberg";
if (byId("iceRandomize")) byId("iceRandomize")!.style.display = type === "Glacier" ? "none" : "inline-block";
const $iceSize = byId("iceSize") as HTMLInputElement;
const $iceSize = byId<'input'>("iceSize");
if ($iceSize) {
$iceSize.style.display = type === "Glacier" ? "none" : "inline-block";
if (type === "Iceberg") $iceSize.value = elSelected.attr("size");