diff --git a/README.md b/README.md index 4ba63c9..332b75f 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,12 @@ # Tab-Search-Firefox -Search firefox tabs and get a list or automatic direct to the searched tab. +Search Firefox tabs and get a list or automatic direct to the searched tab. -# Version: 1.1.5 -Added grid like view plus changed look. Can now manage tabs through the interface such as move or close them. +# Version: 1.1.6 +Fixed missing tab icon images by loading a generic when icon is unavailable. # Images -![1 old list style](images/pic1.jpg) -![2 old search style](images/pic2.jpg) -![3 new list style](images/pic3.jpg) -![4 new search stylelit](images/pic4.jpg) -![5 drag and drop functionality](images/pic5.jpg) \ No newline at end of file +![1 new list style](images/pic3.jpg) +![2 new search stylelit](images/pic4.jpg) +![3 drag and drop functionality](images/pic5.jpg) +![4 old list style](images/pic1.jpg) +![5 old search style](images/pic2.jpg) diff --git a/src/manifest.json b/src/manifest.json index cb9873d..1fa0f09 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 2, "name": "Tab Search", - "version": "1.1.5", + "version": "1.1.6", "description": "Search Tabs and switch to them quickly.", "applications": { diff --git a/src/scripts/generateView.js b/src/scripts/generateView.js index f3f965b..137aa5c 100644 --- a/src/scripts/generateView.js +++ b/src/scripts/generateView.js @@ -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);