Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
e675bc4372 | |||
a1c8f5bb6e | |||
19571e036f | |||
7911e8a898 | |||
5c4ed146e6 |
@@ -7,7 +7,7 @@ var changeIcon = function(color, currentIcon, options) {
|
||||
var ctx = canvas.getContext('2d');
|
||||
var img = new Image();
|
||||
|
||||
if (currentIcon && typeof(currentIcon) !== 'undefined' && currentIcon !== null && currentIcon !== 'undefined') {
|
||||
if (currentIcon && typeof(currentIcon) !== 'undefined' && currentIcon !== null && currentIcon !== "null" && currentIcon !== 'undefined') {
|
||||
img.src = currentIcon;
|
||||
} else {
|
||||
img.src = 'data:image/x-icon;base64,AAABAAEAEBACAAEAAQCwAAAAFgAAACgAAAAQAAAAIAAAAAEAAQAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD//wAA//8AAP//AAD//wAA//8AAP//AAD//wAA//8AAP//AAD//wAA//8AAP//AAD//wAA//8AAP//AAD//wAA';
|
||||
@@ -46,7 +46,7 @@ var generateRandomColor = function(seed) {
|
||||
return "hsl(" + (colorNum * (360 / colors) % 360) + ",100%,50%)";
|
||||
}
|
||||
|
||||
return selectColor(seed, 8);
|
||||
return selectColor(seed, 7);
|
||||
};
|
||||
|
||||
var registerToTST = async function() {
|
||||
|
@@ -2,7 +2,7 @@
|
||||
"description": "Color tabs based on their parent.",
|
||||
"manifest_version": 2,
|
||||
"name": "Color Tab Group",
|
||||
"version": "0.0.11",
|
||||
"version": "0.0.13",
|
||||
"homepage_url": "https://git.e.tern.al/s2/tab-groupcolor",
|
||||
"icons": {
|
||||
"48": "img/icon-48.png"
|
||||
|
@@ -2,7 +2,8 @@ function loadOptions() {
|
||||
return browser.storage.local.get({
|
||||
globals: {
|
||||
width: 3,
|
||||
orientation: 'vertical'
|
||||
orientation: 'vertical',
|
||||
ignore: ''
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user