summaryrefslogtreecommitdiff
path: root/src/static/js/admin/plugins.js
diff options
context:
space:
mode:
authorMatthias Bartelmeß <mba@fourplusone.de>2012-04-29 20:12:15 +0200
committerMatthias Bartelmeß <mba@fourplusone.de>2012-04-29 20:12:15 +0200
commitfa622857b9df4cc0e5fbe067a3a9d94acca46476 (patch)
tree8cd161fb0792c5a4a3a7498c31312edac42b877e /src/static/js/admin/plugins.js
parentcbb5a043b838cf15121601ae1d870b799b025220 (diff)
downloadetherpad-lite-fa622857b9df4cc0e5fbe067a3a9d94acca46476.zip
fixed plugins.js
Diffstat (limited to 'src/static/js/admin/plugins.js')
-rw-r--r--src/static/js/admin/plugins.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/static/js/admin/plugins.js b/src/static/js/admin/plugins.js
index f16cb8b4..1372a313 100644
--- a/src/static/js/admin/plugins.js
+++ b/src/static/js/admin/plugins.js
@@ -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