This commit is contained in:
xaoxuu 2022-10-25 23:54:42 +08:00
parent 40f00d328d
commit 5544167570
1 changed files with 3 additions and 1 deletions

View File

@ -25,7 +25,9 @@ function isHttp(url) {
}
function renderer(el, obj) {
if (obj.title && obj.title.length > 0) {
el.querySelector('.title').innerHTML = obj.title;
}
if (obj.icon && obj.icon.length > 0) {
el.querySelector('.img').style = 'background-image: url("' + obj.icon + '");';
}