Fixed missing tab icon images by loading a generic when icon is unavailable.

This commit is contained in:
2018-05-01 13:05:16 -05:00
parent 3f1be9afe5
commit c514211f50
3 changed files with 11 additions and 14 deletions

View File

@@ -33,11 +33,8 @@ function createContainer(tab) {
icoImgTag.id = "faveIcon";
icoImgTag.className = "thumbImg";
if (tab.favIconUrl == null || tab.favIconUrl == "") {
icoImgTag.src = "../icons/tab.png";
} else {
icoImgTag.src = tab.favIconUrl;
}
icoImgTag.onerror = function() { icoImgTag.src = "../icons/tab.png"; }
icoImgTag.src = tab.favIconUrl;
centerTag.appendChild(icoImgTag);
spanTag.appendChild(closeImgTag);