mirror of
https://github.com/socketio/socket.io.git
synced 2026-04-30 03:00:39 -04:00
Fixed xDomain detection (fixes #462 from socket.io).
This commit is contained in:
@@ -342,8 +342,10 @@
|
||||
return false;
|
||||
// end node
|
||||
|
||||
var locPort = window.location.port || 80;
|
||||
return this.options.host !== document.domain || this.options.port != locPort;
|
||||
var port = window.location.port ||
|
||||
('https:' == window.location.protocol ? 443 : 80);
|
||||
|
||||
return this.options.host !== document.domain || this.options.port != port;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user