Commit 856001ff authored by unixdev's avatar unixdev Committed by Dan Abramov
Browse files

Fix script name to open chrome (#831)

A previous commit renamed the apple script to open chrome from
`chrome.applescript` to `openChrome.applescript`. That created
a minor bug. Even when chrome was open with the client app,
`npm start` would open the client app in a new Safari tab on
macOS instead of re-using the open tab in chrome.
parent 94ec8856
Showing with 1 addition and 1 deletion
+1 -1
......@@ -17,7 +17,7 @@ function openBrowser(url) {
// on OS X Google Chrome with AppleScript
execSync('ps cax | grep "Google Chrome"');
execSync(
'osascript chrome.applescript ' + url,
'osascript openChrome.applescript ' + url,
{cwd: __dirname, stdio: 'ignore'}
);
return true;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment