handle riven parse error
Some checks failed
Build / build (pull_request) Failing after 51s

This commit is contained in:
nyaoouo 2025-07-10 23:37:02 -07:00
parent f796f9a851
commit 5865bdc057

View File

@ -1023,7 +1023,12 @@ function updateInventory() {
{
const td = document.createElement("td");
td.textContent = itemMap[fingerprint.compat]?.name ?? fingerprint.compat;
td.textContent += " " + RivenParser.parseRiven(rivenType, fingerprint, 1).name;
try{
td.textContent += " " + RivenParser.parseRiven(rivenType, fingerprint, 1).name;
} catch (e) {
console.warn("Failed to parse riven", item, e);
td.textContent += ` ${rivenType}[Unparsed]`;
}
td.innerHTML +=
" <span title='" +
loc("code_buffsNumber") +