This commit is contained in:
Mirco Wittrien 2020-03-30 19:08:35 +02:00
parent 3e7f7fd5dc
commit ffe346120c
2 changed files with 1 additions and 4 deletions

View File

@ -1437,8 +1437,6 @@
if (typeof filter == "function") {
let component = filter(ins);
if (component) {
console.log(unmappedType);
console.log(BDFDB.ModuleUtils.find(m => m == component, false));
if (WebModulesData.NonRender.includes(unmappedType)) patchInstance((BDFDB.ModuleUtils.find(m => m == component, false) || {}).exports, type, patchType, true);
else if (WebModulesData.MemoComponent.includes(unmappedType)) patchInstance((BDFDB.ModuleUtils.find(m => m == component, false) || {exports:{}}).exports.default, type, patchType, true);
else patchInstance(component, type, patchType, true);
@ -2344,7 +2342,6 @@
let GuildsPrototype = BDFDB.ReactUtils.getValue(GuildsIns, "_reactInternalFiber.type.prototype");
if (GuildsIns && GuildsPrototype) {
BDFDB.ModuleUtils.patch(BDFDB, GuildsPrototype, "render", {after: e => {
console.log(e);
let [children, index] = BDFDB.ReactUtils.findChildren(e.returnValue, {name: "ConnectedUnreadDMs"});
if (index > -1) children.splice(index + 1, 0, BDFDB.ReactUtils.createElement("div", {}));
BDFDB.ReactUtils.forceUpdate(GuildsIns);

File diff suppressed because one or more lines are too long