fix
This commit is contained in:
parent
12474a0ec4
commit
5ee65921cb
|
@ -1072,13 +1072,13 @@
|
||||||
modulefunctions = [modulefunctions].flat(10).filter(n => n);
|
modulefunctions = [modulefunctions].flat(10).filter(n => n);
|
||||||
for (let modulefunction of modulefunctions) {
|
for (let modulefunction of modulefunctions) {
|
||||||
if (!module[modulefunction]) module[modulefunction] = _ => {};
|
if (!module[modulefunction]) module[modulefunction] = _ => {};
|
||||||
const originalfunction = module[modulefunction];
|
|
||||||
if (!module.BDFDBpatch[modulefunction]) {
|
if (!module.BDFDBpatch[modulefunction]) {
|
||||||
module.BDFDBpatch[modulefunction] = {};
|
module.BDFDBpatch[modulefunction] = {};
|
||||||
for (let type of WebModulesData.Patchtypes) module.BDFDBpatch[modulefunction][type] = {};
|
for (let type of WebModulesData.Patchtypes) module.BDFDBpatch[modulefunction][type] = {};
|
||||||
module.BDFDBpatch[modulefunction].originalMethod = originalfunction;
|
|
||||||
}
|
}
|
||||||
if (!module[modulefunction].isBDFDBpatched) {
|
if (!module[modulefunction].isBDFDBpatched) {
|
||||||
|
const originalfunction = module[modulefunction];
|
||||||
|
module.BDFDBpatch[modulefunction].originalMethod = originalfunction;
|
||||||
module[modulefunction] = function () {
|
module[modulefunction] = function () {
|
||||||
const data = {
|
const data = {
|
||||||
thisObject: this,
|
thisObject: this,
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue