Skip to content

A free, self-hostable news aggregator…

Revert "Dynamic favicon all unread articles"

Alexandre Alapetite83b8af59e506
diff --git a/p/scripts/main.js b/p/scripts/main.js
index 7a85be9c6..762b2e58e 100644
--- a/p/scripts/main.js
+++ b/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'),