From c64eb5d0f312bdc0d00c90ada9669fbbd68c93d1 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Fri, 1 Sep 2023 11:14:12 +0200 Subject: [PATCH] Update 0BDFDB.plugin.js --- Library/0BDFDB.plugin.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Library/0BDFDB.plugin.js b/Library/0BDFDB.plugin.js index cc91f7ab8d..83608078e0 100644 --- a/Library/0BDFDB.plugin.js +++ b/Library/0BDFDB.plugin.js @@ -2,7 +2,7 @@ * @name BDFDB * @author DevilBro * @authorId 278543574059057154 - * @version 3.3.4 + * @version 3.3.5 * @description Required Library for DevilBro's Plugins * @invite Jx3TjNS * @donate https://www.paypal.me/MircoWittrien @@ -3947,7 +3947,7 @@ module.exports = (_ => { }); }; - var MappedMenuItems = {}, RealMenuItems = BDFDB.ModuleUtils.find(m => { + var MappedMenuItems = {}, RealMenuItems = BDFDB.ModuleUtils.findByProperties("MenuCheckboxItem", "MenuItem") || BDFDB.ModuleUtils.find(m => { if (!m || typeof m != "function") return false; let string = m.toString(); return string.endsWith("{return null}}") && string.indexOf("(){return null}") > -1 && string.indexOf("catch(") == -1; @@ -8288,7 +8288,7 @@ module.exports = (_ => { Internal._processAvatarMount(e.instance.props.user, e.node.querySelector(BDFDB.dotCN.avatarwrapper), e.node); }; Internal.processMenu = function (e) { - if (!e.instance.props.children || BDFDB.ArrayUtils.is(e.instance.props.children) && !e.instance.props.children.length) Internal.LibraryModules.ContextMenuUtils.closeContextMenu(); + if (e.instance.props && (!e.instance.props.children || BDFDB.ArrayUtils.is(e.instance.props.children) && !e.instance.props.children.length)) Internal.LibraryModules.ContextMenuUtils.closeContextMenu(); }; Internal.processMessageActionsContextMenu = function (e) { e.instance.props.updatePosition = _ => {};