Update 0BDFDB.plugin.js

This commit is contained in:
Mirco Wittrien 2023-09-01 11:14:12 +02:00
parent 38f1717032
commit c64eb5d0f3
1 changed files with 3 additions and 3 deletions

View File

@ -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 = _ => {};