mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-16 00:05:56 +00:00
offline: try to keep local server info ready for offline mode
This commit is contained in:
10
viewfeed.js
10
viewfeed.js
@@ -48,6 +48,11 @@ function clean_feed_selections() {
|
||||
function headlines_callback2(transport, feed_cur_page) {
|
||||
try {
|
||||
|
||||
if (!transport.responseText && db) {
|
||||
offlineConfirmModeChange();
|
||||
return;
|
||||
}
|
||||
|
||||
loading_set_progress(100);
|
||||
|
||||
debug("headlines_callback2 [page=" + feed_cur_page + "]");
|
||||
@@ -312,6 +317,11 @@ function article_callback2(transport, id, feed_id) {
|
||||
try {
|
||||
debug("article_callback2 " + id);
|
||||
|
||||
if (!transport.responseText && db) {
|
||||
offlineConfirmModeChange();
|
||||
return;
|
||||
}
|
||||
|
||||
if (transport.responseXML) {
|
||||
|
||||
if (!transport_error_check(transport)) return;
|
||||
|
||||
Reference in New Issue
Block a user