From 31e121ab2293959bb0c79272103bfb9f807c6e6d Mon Sep 17 00:00:00 2001 From: AlexisinGit <136088944+AlexisinGit@users.noreply.github.com> Date: Sat, 30 Aug 2025 21:12:41 +0800 Subject: [PATCH] data-loc-info from -inc with no imcompatible text --- static/webui/script.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/static/webui/script.js b/static/webui/script.js index 25f1ffe3..331fa547 100644 --- a/static/webui/script.js +++ b/static/webui/script.js @@ -220,6 +220,13 @@ function updateLocElements() { .join(", "); elm.title = `${loc("worldState_incompatibleWith")} ${incWith}`; }); + document.querySelectorAll("[data-loc-info]").forEach(elm => { + const incWith = elm + .getAttribute("data-loc-info") + .split("|") + .map(key => loc(key)); + elm.title = `${incWith}`; + }); document.querySelectorAll("[data-loc-replace]").forEach(elm => { elm.innerHTML = elm.innerHTML.replace("|VAL|", elm.getAttribute("data-loc-replace")); });