Make account.name capitalized

This commit is contained in:
Niko 2022-02-14 02:30:54 +01:00
parent 9e06563344
commit 6f786583a9
1 changed files with 4 additions and 1 deletions

View File

@ -7,7 +7,10 @@ app.pages.meet = {
const dom = document.querySelector('#page-meet #content');
dom.innerHTML = '';
for (var i = 0; i < json.length; i++) {
var tpl = app.template.fill(json[i], TPL);
var tpl = app.template.fill(json[i], TPL, function (k,v) {
if (k === 'account.name')
return capitalize(v);
});
var item = json[i];
var icon = app.vars.default_icon;
if (item.account.avatar !== undefined &&