fixed plugins.js

This commit is contained in:
Matthias Bartelmeß 2012-04-29 20:12:15 +02:00
parent cbb5a043b8
commit fa622857b9

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