skip empty applies-to values

This commit is contained in:
tophf 2018-07-28 21:04:29 +03:00
parent c7870ee2d1
commit 363b8a7bf1

View File

@ -331,6 +331,7 @@ function getFaviconImgSrc(container = installed) {
for (const target of targets) {
const type = target.dataset.type;
const targetValue = target.textContent;
if (!targetValue) continue;
let favicon = '';
if (type === 'domains') {
favicon = GET_FAVICON_URL + targetValue;