Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Meta
create-react-app
Commits
44b83132
Commit
44b83132
authored
8 years ago
by
Dan Abramov
Browse files
Options
Download
Email Patches
Plain Diff
Make AppleScript call more bulletproof and silence its output
Fixes
#322
parent
fa38991b
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/start.js
+2
-3
scripts/start.js
with
2 additions
and
3 deletions
+2
-3
scripts/start.js
+
2
-
3
View file @
44b83132
...
@@ -136,9 +136,8 @@ function openBrowser(port) {
...
@@ -136,9 +136,8 @@ function openBrowser(port) {
// on OS X Google Chrome with AppleScript
// on OS X Google Chrome with AppleScript
execSync
(
'
ps cax | grep "Google Chrome"
'
);
execSync
(
'
ps cax | grep "Google Chrome"
'
);
execSync
(
execSync
(
'
osascript
'
+
'
osascript chrome.applescript http://localhost:
'
+
port
+
'
/
'
,
path
.
resolve
(
__dirname
,
'
./utils/chrome.applescript
'
)
+
{
cwd
:
path
.
join
(
__dirname
,
'
utils
'
),
stdio
:
'
ignore
'
}
'
http://localhost:
'
+
port
+
'
/
'
);
);
return
;
return
;
}
catch
(
err
)
{
}
catch
(
err
)
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets