Преглед изворни кода

Dynamic favicon quick fix Chrome

https://github.com/marienfressinaud/FreshRSS/issues/539
Could be done better
Alexandre Alapetite пре 11 година
родитељ
комит
6bbf7d51cf
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      p/scripts/main.js

+ 1 - 1
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) {