Fixed web app top bar for asian languages.

This commit is contained in:
Ylian Saint-Hilaire 2020-05-01 21:07:57 -07:00
parent b6ce3307c8
commit 7fd3016b61
2 changed files with 2 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -1361,7 +1361,7 @@
if (pluginHandler != null) pluginHandler.callHook('onWebUIStartupEnd');
// Deleted non-english style and fix all topbar titles
if (('{{{lang}}}'.toLowerCase() != 'en') && ('{{{lang}}}'.toLowerCase() != '')) { QC('body').add('nonenglish'); }
if ((['en','ko','ja','zh-chs'].indexOf('{{{lang}}}') == -1) && ('{{{lang}}}'.toLowerCase() != '')) { QC('body').add('nonenglish'); }
var elements = document.getElementsByClassName('topbar_td');
for (var i in elements) { if (elements[i].innerHTML) { elements[i].innerHTML = elements[i].innerHTML.split(' ').join(' '); } }
}