mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 07:05:56 +00:00
possible workaround for xmlhttp stucking on safari
This commit is contained in:
@@ -187,6 +187,9 @@ function scheduleFeedUpdate(force) {
|
|||||||
if (!xmlhttp_ready(xmlhttp_ctr) && last_refetch < date.getTime() / 1000 - 60) {
|
if (!xmlhttp_ready(xmlhttp_ctr) && last_refetch < date.getTime() / 1000 - 60) {
|
||||||
debug("<b>xmlhttp seems to be stuck, aborting</b>");
|
debug("<b>xmlhttp seems to be stuck, aborting</b>");
|
||||||
xmlhttp_ctr.abort();
|
xmlhttp_ctr.abort();
|
||||||
|
if (is_safari()) {
|
||||||
|
xmlhttp_ctr = Ajax.getTransport();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
debug("REFETCH query: " + query_str);
|
debug("REFETCH query: " + query_str);
|
||||||
|
|||||||
@@ -199,6 +199,9 @@ function view(id, feed_id, skip_history) {
|
|||||||
if (!xmlhttp_ready(xmlhttp) && last_article_view < date.getTime() / 1000 - 15) {
|
if (!xmlhttp_ready(xmlhttp) && last_article_view < date.getTime() / 1000 - 15) {
|
||||||
debug("<b>xmlhttp seems to be stuck at view, aborting</b>");
|
debug("<b>xmlhttp seems to be stuck at view, aborting</b>");
|
||||||
xmlhttp.abort();
|
xmlhttp.abort();
|
||||||
|
if (is_safari()) {
|
||||||
|
xmlhttp_ctr = Ajax.getTransport();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (xmlhttp_ready(xmlhttp)) {
|
if (xmlhttp_ready(xmlhttp)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user