From 2e62323f071c9c503462221f522bf3c1a8177ef3 Mon Sep 17 00:00:00 2001 From: unixdev Date: Mon, 3 Oct 2016 17:36:56 +0600 Subject: [PATCH] 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. --- packages/react-dev-utils/openBrowser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-dev-utils/openBrowser.js b/packages/react-dev-utils/openBrowser.js index 5d969ac1b03..76b33a5924a 100644 --- a/packages/react-dev-utils/openBrowser.js +++ b/packages/react-dev-utils/openBrowser.js @@ -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;