Explorar el Código

Dynamic favicon quick fix Chrome

https://github.com/marienfressinaud/FreshRSS/issues/539
Could be done better
Alexandre Alapetite hace 11 años
padre
commit
6bbf7d51cf
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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) {