diff options
author | Joey Hess <joey@kitenet.net> | 2013-12-09 17:44:45 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2013-12-09 17:44:45 -0400 |
commit | 4a5ab9b1e7fc838ff33fff1c5947e553da9eab5c (patch) | |
tree | 49a527fd4000b14e360f1d87d17fe006ee2971cc /static | |
parent | f8e1d2fd09ff5af8f4c30725ccca2c13502cf700 (diff) |
Tweak magic number to fix bad behavior in Firefox, which was caused by an earlier fix to bad behavior in Chromium.
Browsers are crap.
Diffstat (limited to 'static')
-rw-r--r-- | static/longpolling.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/static/longpolling.js b/static/longpolling.js index 7f332c0b55..4499f20df2 100644 --- a/static/longpolling.js +++ b/static/longpolling.js @@ -16,7 +16,11 @@ function longpoll_div(url, divid, cont, fail) { }, 'error': function(jqxhr, msg, e) { connfails=connfails+1; - if (connfails > 3) { + // It's normal to get 1 failure per longpolling + // element when navigating away from a page. + // So 12 allows up to 4 longpolling elements per + // page. + if (connfails > 12) { fail(); } else { |