Skip to content

Commit 2e62323

Browse files
unixdevfeiqitian
authored andcommitted
Fix script name to open chrome (facebook#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.
1 parent a7b9b13 commit 2e62323

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-dev-utils/openBrowser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function openBrowser(url) {
1717
// on OS X Google Chrome with AppleScript
1818
execSync('ps cax | grep "Google Chrome"');
1919
execSync(
20-
'osascript chrome.applescript ' + url,
20+
'osascript openChrome.applescript ' + url,
2121
{cwd: __dirname, stdio: 'ignore'}
2222
);
2323
return true;

0 commit comments

Comments
 (0)