mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-15 21:28:40 -09:00
* Addressing issue #1862 by filtering out Boolean values from the plugins list in the config. * Updating the PR based on review comments.
This commit is contained in:
parent
38db5095d9
commit
7b403380b0
1 changed files with 3 additions and 0 deletions
|
|
@ -36,6 +36,9 @@ const _init = function (cfg) {
|
||||||
notify('Error reading configuration: `config` key is missing');
|
notify('Error reading configuration: `config` key is missing');
|
||||||
return _extractDefault(cfg.defaultCfg);
|
return _extractDefault(cfg.defaultCfg);
|
||||||
}
|
}
|
||||||
|
// Ignore undefined values in plugin and localPlugins array Issue #1862
|
||||||
|
_cfg.plugins = (_cfg.plugins && _cfg.plugins.filter(Boolean)) || [];
|
||||||
|
_cfg.localPlugins = (_cfg.localPlugins && _cfg.localPlugins.filter(Boolean)) || [];
|
||||||
return _cfg;
|
return _cfg;
|
||||||
}
|
}
|
||||||
return _extractDefault(cfg.defaultCfg);
|
return _extractDefault(cfg.defaultCfg);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue