From d90bc8e902073c39aefd2304d94ee891e466e651 Mon Sep 17 00:00:00 2001 From: buzz-lightsnack-2007 <73412182+buzz-lightsnack-2007@users.noreply.github.com> Date: Fri, 29 Mar 2024 19:54:25 +0800 Subject: [PATCH] re-enable direct term searching in localization --- gui/scripts/windowman.JS | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gui/scripts/windowman.JS b/gui/scripts/windowman.JS index 808d3e7..cfb6c67 100644 --- a/gui/scripts/windowman.JS +++ b/gui/scripts/windowman.JS @@ -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) {