Update 0BDFDB.plugin.js

This commit is contained in:
Mirco Wittrien 2022-09-24 23:54:48 +02:00 committed by GitHub
parent f9e60ac068
commit 1f3bace828
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
* @name BDFDB
* @author DevilBro
* @authorId 278543574059057154
* @version 2.6.3
* @version 2.6.4
* @description Required Library for DevilBro's Plugins
* @invite Jx3TjNS
* @donate https://www.paypal.me/MircoWittrien
@ -4117,7 +4117,7 @@ module.exports = (_ => {
config.id = config.id && [config.id].flat().filter(n => n);
let contextMenu = BDFDB.ReactUtils.findChild(returnvalue, {props: "navId"}) || (BDFDB.ArrayUtils.is(returnvalue) ? {props: {children: returnvalue}} : null);
if (contextMenu) {
let children = [contextMenu.props.children].flat(10);
let children = BDFDB.ArrayUtils.is(contextMenu.props.children) ? contextMenu.props.children : [contextMenu.props.children];
for (let i in children) {
if (children[i] && children[i].type == RealMenuItems.MenuGroup) {
if (BDFDB.ArrayUtils.is(children[i].props.children)) {