Commit e2700bef authored by Wandenberg Peixoto's avatar Wandenberg Peixoto

fix current port selection when is using default protocol port

parent 510a9052
......@@ -660,7 +660,7 @@
var domain = extract_xss_domain(this.pushstream.host);
var currentDomain = extract_xss_domain(window.location.hostname);
var port = this.pushstream.port;
var currentPort = window.location.port;
var currentPort = window.location.port || (this.pushstream.useSSL ? 443 : 80);
this.useJSONP = (domain !== currentDomain) || (port !== currentPort) || this.pushstream.longPollingUseJSONP;
this.xhrSettings.scriptId = "PushStreamManager_" + this.pushstream.id;
if (this.useJSONP) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment