fix(webui): being unable to add Kuva (#292)

Co-authored-by: Sainan <Sainan@users.noreply.github.com>
This commit is contained in:
Sainan 2024-06-11 13:18:59 +02:00 committed by GitHub
parent 5a083f5b13
commit b1f92c854e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -102,7 +102,10 @@ window.itemListPromise = new Promise(resolve => {
items.forEach(item => {
if (item.uniqueName in data.badItems) {
item.name += " (Imposter)";
} else if (item.uniqueName.substr(0, 18) != "/Lotus/Types/Game/") {
} else if (
item.uniqueName.substr(0, 18) != "/Lotus/Types/Game/" &&
item.uniqueName.substr(0, 18) != "/Lotus/StoreItems/"
) {
const option = document.createElement("option");
option.setAttribute("data-key", item.uniqueName);
option.value = item.name;