cleanup settings

This commit is contained in:
Vladimir Mandic
2023-09-18 21:24:40 -04:00
parent 8797a34e19
commit 7ae304f76e
7 changed files with 38 additions and 30 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ async function setHints() {
if (localeData.data.length === 0) {
const res = await fetch('/file=html/locale_en.json');
const json = await res.json();
localeData.data = Object.values(json).flat();
localeData.data = Object.values(json).flat().filter((e) => e.hint.length > 0);
for (const e of localeData.data) e.label = e.label.toLowerCase().trim();
}
const elements = [