From 74c78a8c3920f89a2b997a32cb5946152d679fd5 Mon Sep 17 00:00:00 2001 From: ferricles Date: Tue, 19 Jan 2021 16:28:05 -0800 Subject: [PATCH] fix for double skillpoint display on non-crafteds --- display.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/display.js b/display.js index 852f815..79650de 100644 --- a/display.js +++ b/display.js @@ -501,9 +501,9 @@ function displayExpandedItem(item, parent_id){ active_elem.appendChild(p_elem); } else { let p_elem; - if (!(skp_order.includes(id) && item.get("tier") === "Crafted")) { + if( (!skp_order.includes(id)) || (skp_order.includes(id) && item.get("tier") !== "Crafted" && active_elem.nodeName === "DIV") ) { //skp p_elem = displayFixedID(active_elem, id, item.get(id), elemental_format); - } + } if (id === "displayName") { p_elem.classList.add("title"); if (item.get("tier") !== " ") { @@ -548,6 +548,7 @@ function displayExpandedItem(item, parent_id){ row.appendChild(boost); p_elem.appendChild(row); } else if ( item.get("tier") === "Crafted" && active_elem.nodeName === "TABLE") { + console.log("bruh momment"); let row = document.createElement('tr'); let min_elem = document.createElement('td');