fix
This commit is contained in:
parent
2120c4460f
commit
4e75d75b95
|
@ -1072,11 +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] = _ => {};
|
||||||
|
if (module[modulefunction].toString().indexOf("BDFDBpatch") == -1) {
|
||||||
const originalfunction = 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;
|
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