Use chrome icon when no favicon is present
This commit is contained in:
parent
1247d92537
commit
96fe1fb6ff
Binary file not shown.
After Width: | Height: | Size: 28 KiB |
5
popup.js
5
popup.js
|
@ -178,9 +178,12 @@ function renderWindow(windowdata, winnum) {
|
|||
|
||||
function renderTab(tabdata, tabnum, winnum) {
|
||||
var tab = element('li', {class:"clearfix"})
|
||||
if(tabdata.icon) {
|
||||
if(tabdata.icon && tabdata.icon.substr(0, 9)!="chrome://") {
|
||||
tab.style.backgroundImage = "url(\""+tabdata.icon+"\")";
|
||||
} else {
|
||||
tab.style.backgroundImage = "url(\"chrome.png\")";
|
||||
}
|
||||
|
||||
var label = element('span', {class:"name-line", _parent:tab})
|
||||
var label_icon = element('span', {class:"name-icon", _parent:label, _html:(tabdata.sticky?'<i class="fa fa-thumb-tack"></i> ':'')})
|
||||
var label_name = element('span', {class:"name-string", _parent:label, _html:tabdata.title + " ("+tabdata.id+")"})
|
||||
|
|
Loading…
Reference in New Issue