Permalink
Browse files

Merge pull request #50 from mllocs/master

Fixed double-printing the favicon
  • Loading branch information...
tommoor committed Oct 11, 2013
2 parents 353f493 + fc93ec3 commit 7f191dc40610eb7e4576a622e23dc1971e192db8
Showing with 2 additions and 3 deletions.
  1. +2 −3 tinycon.js
View
@@ -122,9 +122,8 @@
// clear canvas
context.clearRect(0, 0, size, size);
- // draw original favicon fallback to 16x16, then overwrite with 32x32 if possible
- context.drawImage(faviconImage, 0, 0, 16, 16, 0, 0, size, size);
- if (!browser.mozilla) context.drawImage(faviconImage, 0, 0, 32, 32, 0, 0, size, size);
+ // draw the favicon
+ context.drawImage(faviconImage, 0, 0, faviconImage.width, faviconImage.height, 0, 0, size, size);
// draw bubble over the top
if ((label + '').length > 0) drawBubble(context, label, colour);

0 comments on commit 7f191dc

Please sign in to comment.