This commit is contained in:
Mirco Wittrien 2020-02-11 22:34:08 +01:00
parent c4928069c4
commit abde5703a8
3 changed files with 7 additions and 7 deletions

View File

@ -977,7 +977,7 @@
strings.push(getExport); strings.push(getExport);
getExport = true; getExport = true;
} }
return InternalBDFDB.findModule("string", JSON.stringify(strings), m => strings.every(string => typeof m == "function" && (m.toString().indexOf(string) > -1 || typeof m.__originalMethod == "function" && m.__originalMethod.toString().indexOf(string) > -1) || BDFDB.ObjectUtils.is(m) && typeof m.type == "function" && m.type.toString().indexOf(string) > -1), getExport); return InternalBDFDB.findModule("string", JSON.stringify(strings), m => strings.every(string => typeof m == "function" && (m.toString().indexOf(string) > -1 || typeof m.__originalMethod == "function" && m.__originalMethod.toString().indexOf(string) > -1 || typeof m.__originalFunction == "function" && m.__originalFunction.toString().indexOf(string) > -1) || BDFDB.ObjectUtils.is(m) && typeof m.type == "function" && m.type.toString().indexOf(string) > -1), getExport);
}; };
BDFDB.ModuleUtils.findByPrototypes = function (...protoprops) { BDFDB.ModuleUtils.findByPrototypes = function (...protoprops) {
protoprops = protoprops.flat(10); protoprops = protoprops.flat(10);
@ -1174,9 +1174,9 @@
return methodName == "render" && data.returnValue === undefined ? null : data.returnValue; return methodName == "render" && data.returnValue === undefined ? null : data.returnValue;
}; };
for (let key of Object.keys(originalMethod)) module[methodName][key] = originalMethod[key]; for (let key of Object.keys(originalMethod)) module[methodName][key] = originalMethod[key];
if (!module[methodName].__originalMethod) { if (!module[methodName].__originalFunction) {
let realOriginalMethod = originalMethod.__originalMethod || originalMethod; let realOriginalMethod = originalMethod.__originalMethod || originalMethod.__originalFunction || originalMethod;
if (typeof realOriginalMethod == "function") module[methodName].__originalMethod = realOriginalMethod; if (typeof realOriginalMethod == "function") module[methodName].__originalFunction = realOriginalMethod;
} }
module[methodName].__isBDFDBpatched = true; module[methodName].__isBDFDBpatched = true;
} }

File diff suppressed because one or more lines are too long

View File

@ -130,7 +130,7 @@ var ServerFolders = (_ => {
}) })
] ]
}) : null; }) : null;
}).filter(n => n).reduce((r, a) => r.concat(a, BDFDB.DataUtils.get(this.props.plugin, "settings", "addSeparators") ? BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.GuildComponents.Separator, {}) : null), [0]).slice(1, -1).flat(10).filter(n => n) }).filter(n => n).reduce((r, a) => r.concat(a, BDFDB.DataUtils.get(this.props.plugin, "settings", "addSeparators") ? BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.GuildComponents.Items.Separator, {}) : null), [0]).slice(1, -1).flat(10).filter(n => n)
}) })
}); });
} }
@ -276,7 +276,7 @@ var ServerFolders = (_ => {
return class ServerFolders { return class ServerFolders {
getName () {return "ServerFolders";} getName () {return "ServerFolders";}
getVersion () {return "6.6.9";} getVersion () {return "6.7.0";}
getAuthor () {return "DevilBro";} getAuthor () {return "DevilBro";}