Make account.name capitalized
This commit is contained in:
parent
9e06563344
commit
6f786583a9
|
@ -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 &&
|
||||
|
|
Loading…
Reference in New Issue