Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #73 from zzen/patch-1

Fixed URL port type casting issue
  • Loading branch information...
commit 641d08b96a0b32b7b5980efad4d0ba3cb1c40a4f 2 parents ab1a709 + 11095dd
Aaron Heckmann aheckmann authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/browser.js
2  lib/browser.js
View
@@ -128,7 +128,7 @@ Browser.prototype.context = function(selector, fn){
Browser.prototype.hostBrowser = function(uri) {
var otherHostname = uri.hostname
- , port = uri.port || (uri.protocol === 'https:' ? 443 : (this.port || 80))
+ , port = parseInt(uri.port,10) || (uri.protocol === 'https:' ? 443 : (this.port || 80))
, browsers = Browser.browsers
, otherBrowser;
if (!browsers) {
Please sign in to comment.
Something went wrong with that request. Please try again.