diff --git a/source/js/plugins/linkcard.js b/source/js/plugins/linkcard.js index 6309954..f7b57d7 100644 --- a/source/js/plugins/linkcard.js +++ b/source/js/plugins/linkcard.js @@ -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 + '");'; }