From d866c34bdbbcdc848294f2c4862dc583fd2ac8dc Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Wed, 23 Oct 2019 11:41:32 +0200 Subject: [PATCH] Update EditUsers.plugin.js --- Plugins/EditUsers/EditUsers.plugin.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Plugins/EditUsers/EditUsers.plugin.js b/Plugins/EditUsers/EditUsers.plugin.js index edbd9d3812..b73c63e5d6 100644 --- a/Plugins/EditUsers/EditUsers.plugin.js +++ b/Plugins/EditUsers/EditUsers.plugin.js @@ -3,7 +3,7 @@ class EditUsers { getName () {return "EditUsers";} - getVersion () {return "3.6.5";} + getVersion () {return "3.6.6";} getAuthor () {return "DevilBro";} @@ -11,7 +11,7 @@ class EditUsers { constructor () { this.changelog = { - "fixed":[["Tooltips","Fixed issue where native tooltip wasn't hidden"]] + "fixed":[["Account","Fixed the coloring in the account details container"]] }; this.labels = {}; @@ -490,7 +490,7 @@ class EditUsers { } processAccount (instance, wrapper, returnvalue) { - let user = BDFDB.ReactUtils.getValue(instance, "_reactInternalFiber.child.stateNode.props.currentUser"); + let user = instance.props.currentUser; if (user) { this.changeName(user, wrapper.querySelector(BDFDB.dotCN.accountinfodetails).firstElementChild); this.changeAvatar(user, this.getAvatarDiv(wrapper));