Deep merge default config
This commit is contained in:
parent
fc231bca76
commit
23b2f7197c
@ -66,7 +66,7 @@ function setHome(homePath) {
|
|||||||
// Reload config from new home location
|
// Reload config from new home location
|
||||||
if (fs.existsSync(this.CONFIG_PATH)) {
|
if (fs.existsSync(this.CONFIG_PATH)) {
|
||||||
var userConfig = require(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) {
|
if (!this.config.displayNetwork && !this.config.lockNetwork) {
|
||||||
|
Loading…
Reference in New Issue
Block a user