From a76bc9a67d69f48863988980c26a53ad7d1fd1e4 Mon Sep 17 00:00:00 2001 From: Ian Martorell Date: Tue, 7 Jan 2020 13:12:40 +0100 Subject: [PATCH] Revert default autoLaunch behavior to true --- src/commands/dev/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/commands/dev/index.js b/src/commands/dev/index.js index 535390c9555..0c62e322154 100644 --- a/src/commands/dev/index.js +++ b/src/commands/dev/index.js @@ -438,7 +438,11 @@ class DevCommand extends Command { } }) - if (!isEmpty(config.dev) && (!config.dev.hasOwnProperty('autoLaunch') || config.dev.autoLaunch !== false)) { + if ( + isEmpty(config.dev) || + !config.dev.hasOwnProperty('autoLaunch') || + (config.dev.hasOwnProperty('autoLaunch') && config.dev.autoLaunch !== false) + ) { try { await open(url) } catch (err) {