From: Andrew Dolgov Date: Fri, 29 Sep 2006 04:57:07 +0000 (+0100) Subject: show new page on page catchup (2) X-Git-Tag: 1.2.4~85 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=8f3b99baec45d835ebc78e372cdfcaa702b13e3e;p=tt-rss.git show new page on page catchup (2) --- diff --git a/viewfeed.js b/viewfeed.js index 8c0e03a7..e3aa51b0 100644 --- a/viewfeed.js +++ b/viewfeed.js @@ -3,9 +3,15 @@ var _catchup_callback_func = false; function catchup_callback() { if (xmlhttp_rpc.readyState == 4) { - debug("catchup_callback"); - setTimeout("viewCurrentFeed()", 100); - all_counters_callback(); + try { + debug("catchup_callback"); + if (_catchup_callback_func) { + setTimeout(_catchup_callback_func, 100); + } + all_counters_callback(); + } catch (e) { + exception_error("catchup_callback", e); + } } }