1
0
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:
Nick O'Leary 2016-04-04 22:30:19 +01:00
parent 1d54761d48
commit 39f5078d6b

View File

@ -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;