From 1df1e21b819b9f56aa395337ab010faeff4ed07f Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Tue, 9 Jun 2020 10:11:25 +0200 Subject: [PATCH] Update OwnerTag.plugin.js --- Plugins/OwnerTag/OwnerTag.plugin.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Plugins/OwnerTag/OwnerTag.plugin.js b/Plugins/OwnerTag/OwnerTag.plugin.js index e2c63c15df..876c26bd0f 100644 --- a/Plugins/OwnerTag/OwnerTag.plugin.js +++ b/Plugins/OwnerTag/OwnerTag.plugin.js @@ -7,7 +7,7 @@ var OwnerTag = (_ => { OWNER: 2 }; - var settings = {}; + var settings = {}, inputs = {}; return class OwnerTag { getName () {return "OwnerTag";} @@ -253,7 +253,7 @@ var OwnerTag = (_ => { backgroundColor: config.inverted ? (isBright && settings.useBlackFont ? "black" : null) : tagColor, color: !config.inverted ? (isBright && settings.useBlackFont ? "black" : null) : tagColor }, - tag: BDFDB.DataUtils.get(this, "inputs", isOwner ? "ownTagName" : "ownAdminTagName") + tag: inputs[isOwner ? "ownTagName" : "ownAdminTagName"] }); } children.splice(insertIndex, 0, tag); @@ -271,6 +271,7 @@ var OwnerTag = (_ => { forceUpdateAll () { settings = BDFDB.DataUtils.get(this, "settings"); + inputs = BDFDB.DataUtils.get(this, "inputs"); BDFDB.ModuleUtils.forceAllUpdates(this); BDFDB.MessageUtils.rerenderAll();