From 9ab8f1bf29617dd958fea3575a2bd954fc7fbe4d Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Thu, 25 Apr 2019 22:44:02 +0200 Subject: [PATCH] Update EditUsers.plugin.js --- Plugins/EditUsers/EditUsers.plugin.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Plugins/EditUsers/EditUsers.plugin.js b/Plugins/EditUsers/EditUsers.plugin.js index 8fdf065c0d..c0b832b5df 100644 --- a/Plugins/EditUsers/EditUsers.plugin.js +++ b/Plugins/EditUsers/EditUsers.plugin.js @@ -855,8 +855,10 @@ class EditUsers { changeTooltip (info, wrapper, type) { if (!info || !wrapper || !wrapper.parentElement) return; let data = this.getUserData(info.id, wrapper); + wrapper = BDFDB.containsClass(wrapper, BDFDB.disCN.guildicon) ? wrapper.parentElement.parentElement.parentElement : wrapper; wrapper.removeEventListener("mouseenter", wrapper.tooltipListenerEditUsers); if (data.name) { + console.log(wrapper); wrapper.tooltipListenerEditUsers = () => { BDFDB.createTooltip(data.name, wrapper, {type,selector:"EditUsers-tooltip",css:`body ${BDFDB.dotCN.tooltip}:not(.EditUsers-tooltip) {display: none !important;}`}); };