Fixed missing tab icon images by loading a generic when icon is unavailable.
This commit is contained in:
		
							
								
								
									
										16
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										16
									
								
								README.md
									
									
									
									
									
								
							@@ -1,12 +1,12 @@
 | 
				
			|||||||
# Tab-Search-Firefox
 | 
					# 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
 | 
					# Version: 1.1.6
 | 
				
			||||||
Added grid like view plus changed look. Can now manage tabs through the interface such as move or close them.
 | 
					Fixed missing tab icon images by loading a generic when icon is unavailable.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Images
 | 
					# Images
 | 
				
			||||||

 | 
					
 | 
				
			||||||

 | 
					
 | 
				
			||||||

 | 
					
 | 
				
			||||||

 | 
					
 | 
				
			||||||

 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,7 +1,7 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
    "manifest_version": 2,
 | 
					    "manifest_version": 2,
 | 
				
			||||||
    "name": "Tab Search",
 | 
					    "name": "Tab Search",
 | 
				
			||||||
    "version": "1.1.5",
 | 
					    "version": "1.1.6",
 | 
				
			||||||
    "description": "Search Tabs and switch to them quickly.",
 | 
					    "description": "Search Tabs and switch to them quickly.",
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  "applications": {
 | 
					  "applications": {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -33,11 +33,8 @@ function createContainer(tab) {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    icoImgTag.id = "faveIcon";
 | 
					    icoImgTag.id = "faveIcon";
 | 
				
			||||||
    icoImgTag.className = "thumbImg";
 | 
					    icoImgTag.className = "thumbImg";
 | 
				
			||||||
    if (tab.favIconUrl == null || tab.favIconUrl == "") {
 | 
					    icoImgTag.onerror = function() { icoImgTag.src = "../icons/tab.png"; }
 | 
				
			||||||
        icoImgTag.src = "../icons/tab.png";
 | 
					    icoImgTag.src = tab.favIconUrl;
 | 
				
			||||||
    } else {
 | 
					 | 
				
			||||||
        icoImgTag.src = tab.favIconUrl;
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
    centerTag.appendChild(icoImgTag);
 | 
					    centerTag.appendChild(icoImgTag);
 | 
				
			||||||
    spanTag.appendChild(closeImgTag);
 | 
					    spanTag.appendChild(closeImgTag);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user