fixed plugins.js
This commit is contained in:
parent
cbb5a043b8
commit
fa622857b9
1 changed files with 2 additions and 2 deletions
|
@ -5,8 +5,8 @@ $(document).ready(function () {
|
|||
port = loc.port == "" ? (loc.protocol == "https:" ? 443 : 80) : loc.port,
|
||||
url = loc.protocol + "//" + loc.hostname + ":" + port + "/",
|
||||
pathComponents = location.pathname.split('/'),
|
||||
// Strip admin/plugins/
|
||||
baseURL = pathComponents.slice(0,pathComponents.length-3).join('/') + '/',
|
||||
// Strip admin/plugins
|
||||
baseURL = pathComponents.slice(0,pathComponents.length-2).join('/') + '/',
|
||||
resource = baseURL.substring(1) + "socket.io";
|
||||
|
||||
//connect
|
||||
|
|
Loading…
Reference in a new issue