Ver código fonte

Workaround for Firefox favicon glitch (#2543)

Observed in Firefox 69: the favicon is sometimes refreshed with an old
favicon that does not have the number of unread items on it. Seems to
depend on load speed.
Alexandre Alapetite 6 anos atrás
pai
commit
ec5f7ad554
1 arquivos alterados com 1 adições e 0 exclusões
  1. 1 0
      p/scripts/main.js

+ 1 - 0
p/scripts/main.js

@@ -1465,6 +1465,7 @@ function init_afterDOM() {
 		init_posts();
 		init_nav_entries();
 		init_notifs_html5();
+		setTimeout(faviconNbUnread, 1000);
 		setInterval(refreshUnreads, 120000);
 	}