MCPcopy Index your code
hub / github.com/MagicMirrorOrg/MagicMirror / setConfig

Method setConfig

js/module.js:228–230  ·  view source on GitHub ↗

* Set the module config and combine it with the module defaults. * @param {object} config The combined module config. * @param {boolean} deep Merge module config in deep.

(config, deep)

Source from the content-addressed store, hash-verified

226 * @param {boolean} deep Merge module config in deep.
227 */
228 setConfig (config, deep) {
229 this.config = deep ? configMerge({}, this.defaults, config) : Object.assign({}, this.defaults, config);
230 }
231
232 /**
233 * Returns a socket object. If it doesn't exist, it's created.

Callers 2

setDataMethod · 0.95
module_spec.jsFile · 0.80

Calls 1

configMergeFunction · 0.85

Tested by

no test coverage detected