Skip to content

Commit

Permalink
explicit quotes for windows paths
Browse files Browse the repository at this point in the history
  • Loading branch information
krystophv committed Dec 10, 2019
1 parent 837b352 commit 2236077
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/main.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,13 @@ app.on('ready', async () => {
// no chrome installs found, open user's default browser
open(url);
} else {
open(url, {app: chromeInstalls[0]}, function(error){
let app;
if(platform === 'win32'){
app = `"${chromeInstalls[0]}"`;
} else {
app = chromeInstalls[0];
}
open(url, {app}, function(error){
if(error){
// couldn't open chrome, try OS default
open(url);
Expand Down

0 comments on commit 2236077

Please sign in to comment.