Browse Source

Dynamic favicon style 2

https://github.com/marienfressinaud/FreshRSS/issues/539
Alexandre Alapetite 11 years ago
parent
commit
a7632b5429
1 changed files with 1 additions and 1 deletions
  1. 1 1
      p/scripts/main.js

+ 1 - 1
p/scripts/main.js

@@ -1082,7 +1082,7 @@ function faviconNbUnread(n) {
 				}
 				ctx.font = 'bold 9px "Arial", sans-serif';
 				ctx.fillStyle = 'rgba(255, 255, 255, 0.8)';
-				ctx.fillRect(0, 7, 1 + ctx.measureText(text).width, 9);
+				ctx.fillRect(0, 7, ctx.measureText(text).width, 9);
 				ctx.fillStyle = '#F00';
 				ctx.fillText(text, 0, canvas.height - 1);
 			}