Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
2c81a30231 | |||
352131be4f | |||
65aadb4624 |
@@ -24,11 +24,16 @@ var changeIcon = function(color, currentIcon, options) {
|
|||||||
ctx.fillRect(0, 0, 16, options.globals.width);
|
ctx.fillRect(0, 0, 16, options.globals.width);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
var link = document.createElement('link');
|
var link = document.createElement('link');
|
||||||
link.type = 'image/x-icon';
|
link.type = 'image/x-icon';
|
||||||
link.rel = 'shortcut icon';
|
link.rel = 'shortcut icon';
|
||||||
link.href = canvas.toDataURL("image/x-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);
|
document.getElementsByTagName('head')[0].appendChild(link);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
"description": "Color tabs based on their parent.",
|
"description": "Color tabs based on their parent.",
|
||||||
"manifest_version": 2,
|
"manifest_version": 2,
|
||||||
"name": "Color Tab Group",
|
"name": "Color Tab Group",
|
||||||
"version": "0.0.5",
|
"version": "0.0.6",
|
||||||
"homepage_url": "https://git.e.tern.al/s2/tab-groupcolor",
|
"homepage_url": "https://git.e.tern.al/s2/tab-groupcolor",
|
||||||
"icons": {
|
"icons": {
|
||||||
"48": "img/icon-48.png"
|
"48": "img/icon-48.png"
|
||||||
|
Reference in New Issue
Block a user