stuff
This commit is contained in:
parent
04485beebc
commit
e875862e47
|
@ -977,7 +977,7 @@
|
|||
strings.push(getExport);
|
||||
getExport = true;
|
||||
}
|
||||
return InternalBDFDB.findModule("string", JSON.stringify(strings), m => strings.every(string => typeof m == "function" && (m.toString().indexOf(string) > -1 || m.__originalMethod && m.__originalMethod.toString().indexOf(string) > -1 || m.__originalFunction && m.__originalFunction.toString().indexOf(string) > -1) || BDFDB.ObjectUtils.is(m) && typeof m.type == "function" && (m.type.toString().indexOf(string) > -1 || m.type.__originalMethod && m.type.__originalMethod.toString().indexOf(string) > -1 || m.type.__originalFunction && m.type.__originalFunction.toString().indexOf(string) > -1)), getExport);
|
||||
return InternalBDFDB.findModule("string", JSON.stringify(strings), m => strings.every(string => typeof m == "function" && (m.toString().indexOf(string) > -1 || m.__originalMethod && m.__originalMethod.toString().indexOf(string) > -1) || BDFDB.ObjectUtils.is(m) && typeof m.type == "function" && (m.type.toString().indexOf(string) > -1 || m.type.__originalMethod && m.type.__originalMethod.toString().indexOf(string) > -1)), getExport);
|
||||
};
|
||||
BDFDB.ModuleUtils.findByPrototypes = function (...protoprops) {
|
||||
protoprops = protoprops.flat(10);
|
||||
|
@ -1171,7 +1171,7 @@
|
|||
return modulefunction == "render" && data.returnValue === undefined ? null : data.returnValue;
|
||||
};
|
||||
for (let key of Object.keys(originalfunction)) module[modulefunction][key] = originalfunction[key];
|
||||
if (!module[modulefunction].__originalFunction) module[modulefunction].__originalFunction = originalfunction;
|
||||
if (!module[modulefunction].__originalMethod) module[modulefunction].__originalMethod = originalfunction.__originalMethod || originalfunction;
|
||||
module[modulefunction].__isBDFDBpatched = true;
|
||||
}
|
||||
for (let type in patchfunctions) if (typeof patchfunctions[type] == "function") {
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue