diff options
author | Loïc Hoguin <[email protected]> | 2012-04-24 13:42:28 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2012-04-24 13:42:28 +0200 |
commit | 072074c2c083e09eeaadfe69faa63c7617bd879f (patch) | |
tree | b751e99052b68d0140c5eed45ca3ff9d3736cd4e /priv | |
parent | 6b3566ca0b7dd0c4bce7fa14ed1cce3e2813418a (diff) | |
download | bullet-072074c2c083e09eeaadfe69faa63c7617bd879f.tar.gz bullet-072074c2c083e09eeaadfe69faa63c7617bd879f.tar.bz2 bullet-072074c2c083e09eeaadfe69faa63c7617bd879f.zip |
Fix a bug on xhrPolling failing to use the proper URL on reconnect
Diffstat (limited to 'priv')
-rw-r--r-- | priv/bullet.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/priv/bullet.js b/priv/bullet.js index c593646..e6a4268 100644 --- a/priv/bullet.js +++ b/priv/bullet.js @@ -67,7 +67,6 @@ var timeout; var xhr; - var fakeurl = url.replace('ws:', 'http:').replace('wss:', 'https:'); var fake = { readyState: CONNECTING, send: function(data){ @@ -75,6 +74,8 @@ return false; } + var fakeurl = url.replace('ws:', 'http:').replace('wss:', 'https:'); + $.ajax({ async: false, cache: false, @@ -107,6 +108,8 @@ }; function poll(){ + var fakeurl = url.replace('ws:', 'http:').replace('wss:', 'https:'); + xhr = $.ajax({ type: 'GET', cache: false, |