From 6bbf7d51cf19203517b5b0d3ba20b1cc30eb7628 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sat, 2 Aug 2014 15:33:00 +0200 Subject: Dynamic favicon quick fix Chrome https://github.com/marienfressinaud/FreshRSS/issues/539 Could be done better --- p/scripts/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'p/scripts/main.js') diff --git a/p/scripts/main.js b/p/scripts/main.js index 5677e5bbc..b6214e508 100644 --- a/p/scripts/main.js +++ b/p/scripts/main.js @@ -1079,7 +1079,7 @@ function faviconNbUnread(n) { var img = document.createElement('img'); img.onload = function () { var ctx = canvas.getContext('2d'); - ctx.drawImage(this, 0, 0); + ctx.drawImage(this, 0, 0, canvas.width, canvas.height); if (n > 0) { var text = ''; if (n < 1000) { -- cgit v1.2.3