Merge pull request #682 from fourplusone/fix/fix-677

fixed plugins.js
This commit is contained in:
John McLear 2012-04-29 11:13:45 -07:00
commit bf568b3477
1 changed files with 2 additions and 2 deletions

View File

@ -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