2 Commits

Author SHA1 Message Date
s2
01aa8eba44 make indicator larger 2017-12-12 09:36:51 +01:00
s2
594e53b38f screenshot 2017-12-12 09:20:19 +01:00
2 changed files with 1 additions and 3 deletions

View File

@@ -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';

BIN
src/screenshots/firefox.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 257 KiB