Update 0BDFDB.plugin.js
This commit is contained in:
parent
38f1717032
commit
c64eb5d0f3
|
@ -2,7 +2,7 @@
|
||||||
* @name BDFDB
|
* @name BDFDB
|
||||||
* @author DevilBro
|
* @author DevilBro
|
||||||
* @authorId 278543574059057154
|
* @authorId 278543574059057154
|
||||||
* @version 3.3.4
|
* @version 3.3.5
|
||||||
* @description Required Library for DevilBro's Plugins
|
* @description Required Library for DevilBro's Plugins
|
||||||
* @invite Jx3TjNS
|
* @invite Jx3TjNS
|
||||||
* @donate https://www.paypal.me/MircoWittrien
|
* @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;
|
if (!m || typeof m != "function") return false;
|
||||||
let string = m.toString();
|
let string = m.toString();
|
||||||
return string.endsWith("{return null}}") && string.indexOf("(){return null}") > -1 && string.indexOf("catch(") == -1;
|
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._processAvatarMount(e.instance.props.user, e.node.querySelector(BDFDB.dotCN.avatarwrapper), e.node);
|
||||||
};
|
};
|
||||||
Internal.processMenu = function (e) {
|
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) {
|
Internal.processMessageActionsContextMenu = function (e) {
|
||||||
e.instance.props.updatePosition = _ => {};
|
e.instance.props.updatePosition = _ => {};
|
||||||
|
|
Loading…
Reference in New Issue