commit
bf568b3477
|
@ -5,8 +5,8 @@ $(document).ready(function () {
|
||||||
port = loc.port == "" ? (loc.protocol == "https:" ? 443 : 80) : loc.port,
|
port = loc.port == "" ? (loc.protocol == "https:" ? 443 : 80) : loc.port,
|
||||||
url = loc.protocol + "//" + loc.hostname + ":" + port + "/",
|
url = loc.protocol + "//" + loc.hostname + ":" + port + "/",
|
||||||
pathComponents = location.pathname.split('/'),
|
pathComponents = location.pathname.split('/'),
|
||||||
// Strip admin/plugins/
|
// Strip admin/plugins
|
||||||
baseURL = pathComponents.slice(0,pathComponents.length-3).join('/') + '/',
|
baseURL = pathComponents.slice(0,pathComponents.length-2).join('/') + '/',
|
||||||
resource = baseURL.substring(1) + "socket.io";
|
resource = baseURL.substring(1) + "socket.io";
|
||||||
|
|
||||||
//connect
|
//connect
|
||||||
|
|
Loading…
Reference in New Issue