mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-01-12 22:46:30 +08:00
Don't use ES6 in a file that should run on Node 4 (#1724)
This commit is contained in:
2
packages/react-dev-utils/openBrowser.js
vendored
2
packages/react-dev-utils/openBrowser.js
vendored
@@ -17,7 +17,7 @@ function openBrowser(url) {
|
||||
// Attempt to honor this environment variable.
|
||||
// It is specific to the operating system.
|
||||
// See https://github.com/sindresorhus/opn#app for documentation.
|
||||
let browser = process.env.BROWSER;
|
||||
var browser = process.env.BROWSER;
|
||||
|
||||
// Special case: BROWSER="none" will prevent opening completely.
|
||||
if (browser === 'none') {
|
||||
|
||||
Reference in New Issue
Block a user