Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
19571e036f | |||
7911e8a898 | |||
5c4ed146e6 | |||
dcd76d7240 | |||
3dc143c9d8 |
@@ -7,7 +7,7 @@ var changeIcon = function(color, currentIcon, options) {
|
|||||||
var ctx = canvas.getContext('2d');
|
var ctx = canvas.getContext('2d');
|
||||||
var img = new Image();
|
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;
|
img.src = currentIcon;
|
||||||
} else {
|
} 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';
|
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';
|
||||||
|
@@ -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.10",
|
"version": "0.0.12",
|
||||||
"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"
|
||||||
|
@@ -16,6 +16,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||||||
loadOptions().then((options) => {
|
loadOptions().then((options) => {
|
||||||
document.querySelector('#indicator-width').value = options.globals.width;
|
document.querySelector('#indicator-width').value = options.globals.width;
|
||||||
document.querySelector('#indicator-orientation').value = options.globals.orientation;
|
document.querySelector('#indicator-orientation').value = options.globals.orientation;
|
||||||
|
document.querySelector('#ignore').value = options.globals.ignore;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@@ -2,7 +2,8 @@ function loadOptions() {
|
|||||||
return browser.storage.local.get({
|
return browser.storage.local.get({
|
||||||
globals: {
|
globals: {
|
||||||
width: 3,
|
width: 3,
|
||||||
orientation: 'vertical'
|
orientation: 'vertical',
|
||||||
|
ignore: ''
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user