Don't use ES6 in a file that should run on Node 4 (#1724)

This commit is contained in:
Dan Abramov
2017-03-05 19:10:48 +00:00
committed by GitHub
parent 01c3597771
commit ed9eeebf2b

View File

@@ -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') {