mirror of https://github.com/iconify/api.git
Do not check types when merging configuration
This commit is contained in:
parent
9ca392c50c
commit
b6bdcb142b
9
app.js
9
app.js
|
|
@ -37,11 +37,10 @@ try {
|
|||
try {
|
||||
customConfig = JSON.parse(customConfig);
|
||||
Object.keys(customConfig).forEach((key) => {
|
||||
if (typeof app.config[key] !== typeof customConfig[key]) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (typeof app.config[key] === 'object') {
|
||||
if (
|
||||
typeof app.config[key] === 'object' &&
|
||||
typeof customConfig[key] === 'object'
|
||||
) {
|
||||
// merge object
|
||||
Object.assign(app.config[key], customConfig[key]);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue