Skip to content

A free, self-hostable news aggregator…

Fix desync between favicon and title unread counters (#9262)

Inverleb182fb94e82a
diff --git a/p/scripts/main.js b/p/scripts/main.js
index 318c53cf0..74a503fff 100644
--- a/p/scripts/main.js
+++ b/p/scripts/main.js
@@ -2196,8 +2196,8 @@ function refreshUnreads() {
const nb_unreads = title ? str2int(title.getAttribute('data-unread')) : 0;
+ faviconNbUnread(nb_unreads);
if (nb_unreads > 0 && new_articles) {
- faviconNbUnread(nb_unreads);
notifs_html5_show(json.notifBody);
}
};