Skip to content

Commit

Permalink
Merge pull request #673 from ianmartorell/default-autolaunch
Browse files Browse the repository at this point in the history
Revert default autoLaunch behavior to true
  • Loading branch information
RaeesBhatti authored Jan 8, 2020
2 parents ca7dbb9 + a76bc9a commit f95a51f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/commands/dev/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,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) {
Expand Down

0 comments on commit f95a51f

Please sign in to comment.