mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-02-23 23:15:10 +00:00
fix param name
This commit is contained in:
parent
98c8ecf541
commit
bb90ec3cb3
1 changed files with 2 additions and 2 deletions
|
@ -515,7 +515,7 @@ function getAllPropertyNames(object: Object, includeNonEnumerable: boolean) {
|
|||
* closeModal: filters.byCode("key==")
|
||||
* })
|
||||
*/
|
||||
export const mapMangledModule = traceFunction("mapMangledModule", function mapMangledModule<S extends string>(code: string | RegExp | CodeFilter, mappers: Record<S, FilterFn>, includeBlacklisted = false): Record<S, any> {
|
||||
export const mapMangledModule = traceFunction("mapMangledModule", function mapMangledModule<S extends string>(code: string | RegExp | CodeFilter, mappers: Record<S, FilterFn>, includeBlacklistedExports = false): Record<S, any> {
|
||||
const exports = {} as Record<S, any>;
|
||||
|
||||
const id = findModuleId(...Array.isArray(code) ? code : [code]);
|
||||
|
@ -523,7 +523,7 @@ export const mapMangledModule = traceFunction("mapMangledModule", function mapMa
|
|||
return exports;
|
||||
|
||||
const mod = wreq(id as any);
|
||||
const keys = getAllPropertyNames(mod, includeBlacklisted);
|
||||
const keys = getAllPropertyNames(mod, includeBlacklistedExports);
|
||||
outer:
|
||||
for (const key of keys) {
|
||||
const member = mod[key];
|
||||
|
|
Loading…
Add table
Reference in a new issue