File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ var DEFAULT_LIVE_RELOAD_PORT = 35729;
55var Q = require ( 'q' ) ;
66
77function getUrl ( address , port ) {
8-
8+
99 var platformName = require ( 'os' ) . platform ( ) ;
1010
1111 if ( ( platformName . indexOf ( 'win' ) !== - 1 && platformName !== 'darwin' ) &&
@@ -19,7 +19,6 @@ function getUrl(address, port) {
1919}
2020
2121function findClosestOpenPort ( host , port ) {
22- console . log ( host , port ) ;
2322
2423 function t ( portToCheck ) {
2524 return isPortTaken ( host , portToCheck ) . then ( function ( isTaken ) {
@@ -34,7 +33,6 @@ function findClosestOpenPort(host, port) {
3433}
3534
3635function isPortTaken ( host , port ) {
37- console . log ( host , port ) ;
3836 var deferred = Q . defer ( ) ;
3937 var net = require ( 'net' ) ;
4038
@@ -63,4 +61,4 @@ module.exports = {
6361 getUrl : getUrl ,
6462 isPortTaken : isPortTaken ,
6563 findClosestOpenPort : findClosestOpenPort
66- } ;
64+ } ;
You can’t perform that action at this time.
0 commit comments