This commit is contained in:
Mirco Wittrien 2019-12-09 20:12:47 +01:00
parent 2120c4460f
commit 4e75d75b95
2 changed files with 8 additions and 6 deletions

View File

@ -1072,11 +1072,13 @@
modulefunctions = [modulefunctions].flat(10).filter(n => n);
for (let modulefunction of modulefunctions) {
if (!module[modulefunction]) module[modulefunction] = _ => {};
if (module[modulefunction].toString().indexOf("BDFDBpatch") == -1) {
const originalfunction = module[modulefunction];
if (!module.BDFDBpatch[modulefunction]) {
module.BDFDBpatch[modulefunction] = {};
for (let type of WebModulesData.Patchtypes) module.BDFDBpatch[modulefunction][type] = {};
module.BDFDBpatch[modulefunction].originalMethod = originalfunction;
}
module[modulefunction] = function () {
const data = {
thisObject: this,

File diff suppressed because one or more lines are too long