mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 21:25:55 +00:00
check for failures to request counters in async way after viewfeed/view
This commit is contained in:
@@ -168,6 +168,10 @@ function viewfeed(feed, subop, is_cat, subop_param, skip_history, offset) {
|
||||
query = query + "&omode=flc";
|
||||
}
|
||||
|
||||
if (!async_counters_work) {
|
||||
query = query + "&csync=true";
|
||||
}
|
||||
|
||||
debug(query);
|
||||
|
||||
var container = document.getElementById("headlinesInnerContainer");
|
||||
@@ -517,7 +521,7 @@ function request_counters_real() {
|
||||
new Ajax.Request(query, {
|
||||
onComplete: function(transport) {
|
||||
try {
|
||||
all_counters_callback2(transport);
|
||||
all_counters_callback2(transport, true);
|
||||
} catch (e) {
|
||||
exception_error("viewfeed/getcounters", e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user