Skip to content

Commit

Permalink
win32 - use start instead of open to open browser
Browse files Browse the repository at this point in the history
  • Loading branch information
gypark committed Feb 21, 2016
1 parent 76db702 commit 90b857d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions instant-markdown-d
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ io.sockets.on('connection', function(sock){
if (process.platform.toLowerCase().indexOf('darwin') >= 0){
exec('open -g http://localhost:8090', function(error, stdout, stderr){});
}
// In windows, use start
else if (process.platform.toLowerCase().indexOf('win32') >= 0) {
exec('start http://localhost:8090', function(error, stdout, stderr){});
}
else { // assume unix/linux
exec('xdg-open http://localhost:8090', function(error, stdout, stderr){});
}

0 comments on commit 90b857d

Please sign in to comment.