A free, self-hostable news aggregator…
Stop the unread-count poller after the session ends (#9065)
Cron94ff6e4366e8
diff --git a/p/scripts/main.js b/p/scripts/main.jsindex 871e9b4e1..f19de32b4 100644--- a/p/scripts/main.js+++ b/p/scripts/main.js@@ -2107,7 +2107,7 @@ function refreshUnreads() {req.onload = function (e) {const json = xmlHttpRequestJson(this);if (!json) {- return badAjax(false);+ return badAjax(this.status >= 400 && this.status <= 499);}const isAll = document.querySelector('.category.all.active');let new_articles = false;