aboutsummaryrefslogtreecommitdiff
path: root/p/scripts
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2014-08-02 15:33:00 +0200
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2014-08-02 15:33:00 +0200
commit6bbf7d51cf19203517b5b0d3ba20b1cc30eb7628 (patch)
tree2890c4c87c27e8b9d96d2f741e46b6012e6ac051 /p/scripts
parentc685998768aae2177fabdba78f96bf5e790cf841 (diff)
Dynamic favicon quick fix Chrome
https://github.com/marienfressinaud/FreshRSS/issues/539 Could be done better
Diffstat (limited to 'p/scripts')
-rw-r--r--p/scripts/main.js2
1 files changed, 1 insertions, 1 deletions
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) {