forked from Shinonome/dots-hyprland
Arrays in user options don't throw an error anymore (#586)
This commit is contained in:
@@ -198,7 +198,7 @@ function overrideConfigRecursive(userOverrides, configOptions = {}, check = true
|
|||||||
if (configOptions[key] === undefined && check) {
|
if (configOptions[key] === undefined && check) {
|
||||||
optionsOkay = false;
|
optionsOkay = false;
|
||||||
}
|
}
|
||||||
else if (typeof value === 'object') {
|
else if (typeof value === 'object' && !(value instanceof Array)) {
|
||||||
if (key === "substitutions" || key === "regexSubstitutions") {
|
if (key === "substitutions" || key === "regexSubstitutions") {
|
||||||
overrideConfigRecursive(value, configOptions[key], false);
|
overrideConfigRecursive(value, configOptions[key], false);
|
||||||
} else overrideConfigRecursive(value, configOptions[key]);
|
} else overrideConfigRecursive(value, configOptions[key]);
|
||||||
|
|||||||
Reference in New Issue
Block a user