mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Return editorTheme default if value is undefined
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user