Deep merge default config

This commit is contained in:
Pavel Djundik 2017-07-06 15:00:43 +03:00
parent fc231bca76
commit 23b2f7197c

View File

@ -66,7 +66,7 @@ function setHome(homePath) {
// Reload config from new home location
if (fs.existsSync(this.CONFIG_PATH)) {
var userConfig = require(this.CONFIG_PATH);
this.config = _.extend(this.config, userConfig);
this.config = _.merge(this.config, userConfig);
}
if (!this.config.displayNetwork && !this.config.lockNetwork) {