|
@@ -2107,7 +2107,7 @@ function refreshUnreads() {
|
|
|
req.onload = function (e) {
|
|
req.onload = function (e) {
|
|
|
const json = xmlHttpRequestJson(this);
|
|
const json = xmlHttpRequestJson(this);
|
|
|
if (!json) {
|
|
if (!json) {
|
|
|
- return badAjax(false);
|
|
|
|
|
|
|
+ return badAjax(this.status >= 400 && this.status <= 499);
|
|
|
}
|
|
}
|
|
|
const isAll = document.querySelector('.category.all.active');
|
|
const isAll = document.querySelector('.category.all.active');
|
|
|
let new_articles = false;
|
|
let new_articles = false;
|