Permalink
Browse files

parseInt missing the base 10 argument.

  • Loading branch information...
1 parent 65d2c29 commit 244e610a2dd206f09b3413897a4b7079f33c7d60 @andrewdavey committed Jul 21, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/client/vogue-client.js
@@ -130,7 +130,7 @@ function getPort(url) {
// http://domain:1234/
var index = url.indexOf(':', 6); // skipping 6 characters to ignore first colon
if (index < 0) return 80; // default to port 80 if none found.
- return parseInt(url.substr(index+1));
+ return parseInt(url.substr(index+1), 10);
}
})();

0 comments on commit 244e610

Please sign in to comment.