aboutsummaryrefslogtreecommitdiff
path: root/p/scripts
diff options
context:
space:
mode:
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) {