From: Andrew Dolgov Date: Wed, 30 May 2007 14:54:47 +0000 (+0100) Subject: possible workaround for xmlhttp stucking on safari X-Git-Tag: 1.2.12~17 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=c5af7171a5426414e8b7188ac3d411fc3b6bafc0;p=tt-rss.git possible workaround for xmlhttp stucking on safari --- diff --git a/tt-rss.js b/tt-rss.js index 215699c5..54e41d91 100644 --- a/tt-rss.js +++ b/tt-rss.js @@ -187,6 +187,9 @@ function scheduleFeedUpdate(force) { if (!xmlhttp_ready(xmlhttp_ctr) && last_refetch < date.getTime() / 1000 - 60) { debug("xmlhttp seems to be stuck, aborting"); xmlhttp_ctr.abort(); + if (is_safari()) { + xmlhttp_ctr = Ajax.getTransport(); + } } debug("REFETCH query: " + query_str); diff --git a/viewfeed.js b/viewfeed.js index 18264eb6..bef608d3 100644 --- a/viewfeed.js +++ b/viewfeed.js @@ -199,6 +199,9 @@ function view(id, feed_id, skip_history) { if (!xmlhttp_ready(xmlhttp) && last_article_view < date.getTime() / 1000 - 15) { debug("xmlhttp seems to be stuck at view, aborting"); xmlhttp.abort(); + if (is_safari()) { + xmlhttp_ctr = Ajax.getTransport(); + } } if (xmlhttp_ready(xmlhttp)) {