Explorar el Código

Revert "Dynamic favicon all unread articles"

This reverts commit 6972a469794a654c6ecd6b32b68a813e1c47f7ec.
Alexandre Alapetite hace 11 años
padre
commit
83b8af59e5
Se han modificado 1 ficheros con 1 adiciones y 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'),