Browse Source

Revert "Dynamic favicon all unread articles"

This reverts commit 6972a469794a654c6ecd6b32b68a813e1c47f7ec.
Alexandre Alapetite 11 years ago
parent
commit
83b8af59e5
1 changed files with 1 additions and 4 deletions
  1. 1 4
      p/scripts/main.js

+ 1 - 4
p/scripts/main.js

@@ -1060,10 +1060,7 @@ function init_password_observers() {
 
 function faviconNbUnread(n) {
 	if (typeof n === 'undefined') {
-		n = 0;
-		$('.feed[data-unread]').each(function() {
-			n += str2int(this.getAttribute('data-unread'));
-		});
+		n = str2int($('.category.all>a').attr('data-unread'));
 	}
 	//http://remysharp.com/2010/08/24/dynamic-favicons/
 	var canvas = document.createElement('canvas'),