diff options
Diffstat (limited to 'priv/bullet.js')
-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, |