mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-05-16 19:09:05 +08:00
Make AppleScript call more bulletproof and silence its output
Fixes #322
This commit is contained in:
@@ -136,9 +136,8 @@ function openBrowser(port) {
|
||||
// on OS X Google Chrome with AppleScript
|
||||
execSync('ps cax | grep "Google Chrome"');
|
||||
execSync(
|
||||
'osascript ' +
|
||||
path.resolve(__dirname, './utils/chrome.applescript') +
|
||||
' http://localhost:' + port + '/'
|
||||
'osascript chrome.applescript http://localhost:' + port + '/',
|
||||
{cwd: path.join(__dirname, 'utils'), stdio: 'ignore'}
|
||||
);
|
||||
return;
|
||||
} catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user