This commit is contained in:
Mirco Wittrien 2019-11-03 21:56:17 +01:00
parent 32f5bb1f67
commit edee67f114
2 changed files with 2 additions and 3 deletions

View File

@ -930,7 +930,6 @@ var BDFDB = {
InviteCard: "InviteRow",
PopoutContainer: "Popout",
MemberCard: "Member",
MessageDeveloperModeGroup: "FluxContainer(MessageDeveloperModeGroup)",
WebhookCard: "Webhook"
};
var webModulesNotFindableModules = {
@ -979,7 +978,7 @@ var BDFDB = {
};
if (window.BDFDB && typeof BDFDB === "object" && BDFDB.loaded && module.BDFDBpatch[modulefunction]) {
if (!BDFDB.ObjectUtils.isEmpty(module.BDFDBpatch[modulefunction].before)) for (let id in BDFDB.ObjectUtils.sort(module.BDFDBpatch[modulefunction].before)) {
BDFDB.TimeUtils.suppress(module.BDFDBpatch[modulefunction].before[id], `"before" callback of ${modulefunction} in ${module.constructor ? module.constructor.displayName || module.constructor.name : "module"}`)(data);
BDFDB.TimeUtils.suppress(module.BDFDBpatch[modulefunction].before[id], `"before" callback of ${modulefunction} in ${module.constructor ? module.constructor.displayName || module.constructor.name : "module"}`, pluginname)(data);
}
if (BDFDB.ObjectUtils.isEmpty(module.BDFDBpatch[modulefunction].instead)) data.callOriginalMethod();
else for (let id in BDFDB.ObjectUtils.sort(module.BDFDBpatch[modulefunction].instead)) {

File diff suppressed because one or more lines are too long