Skip to content
Browse files

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

fixed plugins.js
  • Loading branch information...
2 parents 1229867 + fa62285 commit bf568b34771b8edabc68566c3b9fd66123a90191 @JohnMcLear JohnMcLear committed Apr 29, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/static/js/admin/plugins.js
View
4 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

0 comments on commit bf568b3

Please sign in to comment.
Something went wrong with that request. Please try again.