Update 0BDFDB.plugin.js

This commit is contained in:
Mirco Wittrien 2022-02-12 17:54:13 +01:00
parent 1194399c65
commit 8fb053fcc9
1 changed files with 2 additions and 1 deletions

View File

@ -8256,7 +8256,8 @@ module.exports = (_ => {
BDFDB.PatchUtils.patch(plugin, module, "default", {after: e => {
if (typeof plugin[`on${type}`] != "function") return;
else if (e.returnValue && e.returnValue.props.children) {
if (e.returnValue.props.children.type && e.returnValue.props.children.type.displayName) {
if (BDFDB.ArrayUtils.is(e.returnValue.props.children)) call(e.methodArguments[0], e.returnValue, module.default.displayName);
else if (e.returnValue.props.children.type && e.returnValue.props.children.type.displayName) {
let name = e.returnValue.props.children.type.displayName;
let originalReturn = e.returnValue.props.children.type(e.returnValue.props.children.props);
if (!originalReturn || !originalReturn.type) return;