mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Save editor settings in /settings/user
This commit is contained in:
@@ -197,7 +197,7 @@ RED.userSettings = (function() {
|
||||
allSettings[opt.setting] = opt;
|
||||
if (opt.onchange) {
|
||||
var value = RED.settings.get(opt.setting);
|
||||
if (value === null && opt.hasOwnProperty('default')) {
|
||||
if ((value === null || value === undefined) && opt.hasOwnProperty('default')) {
|
||||
value = opt.default;
|
||||
RED.settings.set(opt.setting,value);
|
||||
}
|
||||
|
Reference in New Issue
Block a user