make indicator larger
This commit is contained in:
@@ -9,17 +9,15 @@ var changeIcon = function(color, currentIcon) {
|
||||
var img = new Image();
|
||||
|
||||
if (currentIcon && typeof(currentIcon) !== 'undefined' && currentIcon !== null && currentIcon !== 'undefined') {
|
||||
console.log(currentIcon);
|
||||
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';
|
||||
}
|
||||
|
||||
console.log(img.src);
|
||||
img.onload = function() {
|
||||
ctx.drawImage(img, 0, 0);
|
||||
ctx.fillStyle = color;
|
||||
ctx.fillRect(0, 0, 2, 16);
|
||||
ctx.fillRect(0, 0, 3, 16);
|
||||
|
||||
var link = document.createElement('link');
|
||||
link.type = 'image/x-icon';
|
||||
|
Reference in New Issue
Block a user