This commit is contained in:
briskets 2021-03-09 09:23:55 -05:00
parent fbd48ce0bb
commit 9b593c6afe

View File

@ -522,15 +522,11 @@
element[attribute] = isChecked;
}
if (element.class === "SELECT") {
if (element.nodeName === "SELECT") {
const selectedItem = options.find(option => option[attribute] === localStorage.getItem(key));
selectedItem.selected = true;
}
if (element.id === "shell") {
const selectedItem = options.find(option => option[attribute] === localStorage.getItem(key));
selectedItem.selected = true;
}
}
}