Skip to content

Commit ef171bc

Browse files
committed
Fix script name to open chrome
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 94ec885 commit ef171bc

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)