Update BDFDB.js

This commit is contained in:
Mirco Wittrien 2020-02-03 12:02:28 +01:00
parent f6b672f29e
commit 1751284a95
1 changed files with 1 additions and 1 deletions

View File

@ -2443,7 +2443,7 @@
let defaults = (plugin.name == "$BDFDB" ? InternalBDFDB : plugin).defaults;
if (!BDFDB.ObjectUtils.is(defaults) || !defaults[key]) return id === undefined ? {} : null;
var oldconfig = BDFDB.DataUtils.load(plugin, key), newconfig = {}, update = false;
for (let k in defaultsObject.defaults[key]) {
for (let k in defaults[key]) {
if (oldconfig[k] == null) {
newconfig[k] = BDFDB.ObjectUtils.is(defaults[key][k].value) ? BDFDB.ObjectUtils.deepAssign({}, defaults[key][k].value) : defaults[key][k].value;
update = true;