瀏覽代碼

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