stuff
This commit is contained in:
parent
c4928069c4
commit
abde5703a8
|
@ -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 || 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) {
|
||||
protoprops = protoprops.flat(10);
|
||||
|
@ -1174,9 +1174,9 @@
|
|||
return methodName == "render" && data.returnValue === undefined ? null : data.returnValue;
|
||||
};
|
||||
for (let key of Object.keys(originalMethod)) module[methodName][key] = originalMethod[key];
|
||||
if (!module[methodName].__originalMethod) {
|
||||
let realOriginalMethod = originalMethod.__originalMethod || originalMethod;
|
||||
if (typeof realOriginalMethod == "function") module[methodName].__originalMethod = realOriginalMethod;
|
||||
if (!module[methodName].__originalFunction) {
|
||||
let realOriginalMethod = originalMethod.__originalMethod || originalMethod.__originalFunction || originalMethod;
|
||||
if (typeof realOriginalMethod == "function") module[methodName].__originalFunction = realOriginalMethod;
|
||||
}
|
||||
module[methodName].__isBDFDBpatched = true;
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -130,7 +130,7 @@ var ServerFolders = (_ => {
|
|||
})
|
||||
]
|
||||
}) : 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 {
|
||||
getName () {return "ServerFolders";}
|
||||
|
||||
getVersion () {return "6.6.9";}
|
||||
getVersion () {return "6.7.0";}
|
||||
|
||||
getAuthor () {return "DevilBro";}
|
||||
|
||||
|
|
Loading…
Reference in New Issue