Update BDFDB.js

This commit is contained in:
Mirco Wittrien 2020-01-30 21:11:39 +01:00
parent 13df5a6671
commit 762d4f5200
1 changed files with 1 additions and 1 deletions

View File

@ -1302,7 +1302,7 @@
if (instance) {
instance = instance._reactInternalFiber && instance._reactInternalFiber.type ? instance._reactInternalFiber.type : instance;
let patchfunctions = {};
patchfunctions[patchtype] = e => InternalBDFDB.initiateProcess(plugin, type, {instance:e.thisObject, returnvalue:e.returnValue, methodname:e.originalMethodName, patchtypes:[patchtype]});
patchfunctions[patchtype] = e => InternalBDFDB.initiateProcess(plugin, type, {instance:window != e.thisObject ? e.thisObject : {props:e.methodArguments[0]}, returnvalue:e.returnValue, methodname:e.originalMethodName, patchtypes:[patchtype]});
BDFDB.ModuleUtils.patch(plugin, WebModulesData.Nonprototype.includes(name) ? instance : instance.prototype, plugin.patchedModules[patchtype][type], patchfunctions);
}
}