From fd1bc0252ee0992094997f55fd04d442dadecfd6 Mon Sep 17 00:00:00 2001 From: ferricles Date: Thu, 12 May 2022 18:48:38 -0700 Subject: [PATCH] wynnatlas mini no longer errors --- builder/index.html | 10 ++++++++-- crafter/index.html | 5 +++++ items/index.html | 2 +- js/items.js | 20 +++++++++++--------- 4 files changed, 25 insertions(+), 12 deletions(-) diff --git a/builder/index.html b/builder/index.html index 7049833..3910dce 100644 --- a/builder/index.html +++ b/builder/index.html @@ -802,8 +802,8 @@
- - + +
@@ -825,6 +825,9 @@
+
+
+
@@ -1244,12 +1247,15 @@ + + + diff --git a/crafter/index.html b/crafter/index.html index 58cbbfb..f306a80 100644 --- a/crafter/index.html +++ b/crafter/index.html @@ -292,6 +292,8 @@ + + @@ -305,5 +307,8 @@ + + + diff --git a/items/index.html b/items/index.html index bace2e7..fce8862 100644 --- a/items/index.html +++ b/items/index.html @@ -27,7 +27,7 @@ WynnCustomWynnCustom WynnGPSWynnGPS WynnfoWynnCrafter - WynnAtlas Mini + WynnAtlas Mini Swap Icon Style
diff --git a/js/items.js b/js/items.js index 4525032..49c33c3 100644 --- a/js/items.js +++ b/js/items.js @@ -103,15 +103,17 @@ const special_mappings = { }; let itemFilters = document.getElementById("filter-items"); -for (let x in translate_mappings) { - let el = document.createElement("option"); - el.value = x; - itemFilters.appendChild(el); -} -for (let x in special_mappings) { - let el = document.createElement("option"); - el.value = x; - itemFilters.appendChild(el); +if (itemFilters) { + for (let x in translate_mappings) { + let el = document.createElement("option"); + el.value = x; + itemFilters.appendChild(el); + } + for (let x in special_mappings) { + let el = document.createElement("option"); + el.value = x; + itemFilters.appendChild(el); + } } let itemCategories = [ "armor", "accessory", "weapon" ];