linkcard
This commit is contained in:
parent
40f00d328d
commit
5544167570
|
@ -25,7 +25,9 @@ function isHttp(url) {
|
|||
}
|
||||
|
||||
function renderer(el, obj) {
|
||||
el.querySelector('.title').innerHTML = obj.title;
|
||||
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 + '");';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue