mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-07-03 22:36:09 +00:00
apply ConfigMerge() if configDeepMerge: true
This commit is contained in:
parent
1f473228ce
commit
97c2bab58a
@ -230,8 +230,8 @@ var Module = Class.extend({
|
|||||||
* @param {object} config The combined module config.
|
* @param {object} config The combined module config.
|
||||||
* @param {boolean} config Merge module config in deep.
|
* @param {boolean} config Merge module config in deep.
|
||||||
*/
|
*/
|
||||||
setConfig: function (config) {
|
setConfig: function (config, deep) {
|
||||||
this.config = Object.assign({}, this.defaults, config);
|
this.config= deep ? configMerge({}, this.defaults, config) : Object.assign({}, this.defaults, config);
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user