Explorar o código

Revert "Dynamic favicon all unread articles"

This reverts commit 6972a469794a654c6ecd6b32b68a813e1c47f7ec.
Alexandre Alapetite %!s(int64=11) %!d(string=hai) anos
pai
achega
83b8af59e5
Modificáronse 1 ficheiros con 1 adicións e 4 borrados
  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'),