Commit 44b83132 authored by Dan Abramov's avatar Dan Abramov
Browse files

Make AppleScript call more bulletproof and silence its output

Fixes #322
parent fa38991b
No related merge requests found
Showing with 2 additions and 3 deletions
+2 -3
......@@ -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) {
......
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