don't clutter the page with favicons
This commit is contained in:
@@ -29,6 +29,12 @@ var changeIcon = function(color, currentIcon, options) {
|
||||
link.type = 'image/x-icon';
|
||||
link.rel = 'shortcut icon';
|
||||
link.href = canvas.toDataURL("image/x-icon");
|
||||
link.id = 'tab-groupcolor' + '-favicon';
|
||||
var oldicon = document.getElementById('tab-groupcolor' + '-favicon');
|
||||
if (oldicon) {
|
||||
oldicon.outerHTML = '';
|
||||
delete oldicon;
|
||||
}
|
||||
document.getElementsByTagName('head')[0].appendChild(link);
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user