re-enable direct term searching in localization

This commit is contained in:
buzz-lightsnack-2007 2024-03-29 19:54:25 +08:00
parent 79f358f0be
commit d90bc8e902

View file

@ -50,8 +50,9 @@ class windowman {
text_elements.forEach((text_element) => {
let text_inserted = texts.localized(
text_element.getAttribute(`data-text`),
false,
text_element.hasAttribute(`data-text-parameter`)
? eval(text_element.getAttribute(`data-text-parameter`))
? text_element.getAttribute(`data-text-parameter`).split(",")
: null,
);
if (!text_inserted) {