Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Minor improvements to readability

  • Loading branch information...
commit 6f80ef14b77463f0e0e86e84ee4728f93a15ea19 1 parent b8c3f79
@mixu mixu authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 lib/transports/xhr.js
View
10 lib/transports/xhr.js
@@ -187,11 +187,11 @@
XHR.check = function (socket, xdomain) {
try {
- var request = io.util.request(xdomain);
- var uses_xdomainrequest = (global.XDomainRequest && request instanceof XDomainRequest);
- var socket_protocol = (socket && socket.options && socket.options.secure ? 'https:' : 'http:');
- var is_cross_protocol = (socket_protocol != global.location.protocol);
- if (request && !(uses_xdomainrequest && is_cross_protocol)) {
+ var request = io.util.request(xdomain),
+ usesXDomReq = (global.XDomainRequest && request instanceof XDomainRequest),
+ socketProtocol = (socket && socket.options && socket.options.secure ? 'https:' : 'http:'),
+ isXProtocol = (socketProtocol != global.location.protocol);
+ if (request && !(usesXDomReq && isXProtocol)) {
return true;
}
} catch(e) {}
Please sign in to comment.
Something went wrong with that request. Please try again.