5 Commits

Author SHA1 Message Date
Dan Abramov
519d32a19f Only open Chrome tab if BROWSER is missing or is Chrome (#1247) 2016-12-11 13:15:42 -08:00
Gabriel Aumala
759806ed4f Configure which browser to open in npm start (#873) (#1148)
Use a 'BROWSER' environment variable with npm start to specify which
browser to open. if the value of 'BROWSER' is not valid executable file,
don't open any browser.
2016-12-11 12:16:35 -08:00
Sandro Padin
0bd593baa7 Catch and noop call to open web browser. (#964)
Running `create-react-app` in a Docker container causes an unhandled rejection error in nodejs > 6.5 because the `opn` module tries to open a web browser in a system that doesn't have one. I figured this error could be safely ignored.
2016-10-28 13:45:50 +01:00
unixdev
856001ff8c 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.
2016-10-03 12:36:56 +01:00
Dan Abramov
e5bf5af296 Extract some utilities into a separate package (#723)
* Extract some utilities into a separate package

* Add utils dir to `files` in package.json

* Do not create an empty `utils` dir on eject
2016-09-23 20:53:08 +01:00