File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 42
42
catch ( err ) { console . error ( "Failed setting up required ngrok tunnel.. reason being\n~" , err ) ; process . exit ( 0 ) }
43
43
44
44
//now to try to open browser with localhost:8082
45
- let stderr = null ; let stdout = null
45
+ let stderr = null ; let stdout = null ; setupComplete = true
46
+ //in one case the shellCommand function was hanging so no more await
46
47
if ( process . platform == "win32" ) {
47
- let x = await shellCommand ( "start http://localhost:8082" ) ; stdout = x . stdout ; stderr = x . stderr
48
+ let x = shellCommand ( "start http://localhost:8082" ) ; stdout = x . stdout ; stderr = x . stderr
48
49
}
49
50
else if ( process . platform == "darwin" ) {
50
- let x = await shellCommand ( "open http://localhost:8082" ) ; stdout = x . stdout ; stderr = x . stderr
51
+ let x = shellCommand ( "open http://localhost:8082" ) ; stdout = x . stdout ; stderr = x . stderr
51
52
}
52
53
else {
53
- let x = await shellCommand ( "xdg-open http://localhost:8082" ) ; stdout = x . stdout ; stderr = x . stderr
54
+ let x = shellCommand ( "xdg-open http://localhost:8082" ) ; stdout = x . stdout ; stderr = x . stderr //waiting on this hangs until browser closed
54
55
}
55
- setupComplete = true
56
56
57
57
//if it isn't possible, ask the user to open a browser to localhost:8082
58
58
if ( stderr ) {
You can’t perform that action at this time.
0 commit comments