mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Return editorTheme default if value is undefined
This commit is contained in:
parent
1d54761d48
commit
39f5078d6b
@ -129,6 +129,9 @@ RED.settings = (function () {
|
||||
for (var i=0;i<parts.length;i++) {
|
||||
v = v[parts[i]];
|
||||
}
|
||||
if (v === undefined) {
|
||||
return defaultValue;
|
||||
}
|
||||
return v;
|
||||
} catch(err) {
|
||||
return defaultValue;
|
||||
|
Loading…
Reference in New Issue
Block a user