From 0a4bcd5ccd037eb155b4974af9c683846667a00e Mon Sep 17 00:00:00 2001 From: Nuckyz <61953774+Nuckyz@users.noreply.github.com> Date: Fri, 21 Jun 2024 19:47:44 -0300 Subject: [PATCH] fix cache find --- src/webpack/webpack.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/webpack/webpack.tsx b/src/webpack/webpack.tsx index 8388a3fd8..c7dbaa234 100644 --- a/src/webpack/webpack.tsx +++ b/src/webpack/webpack.tsx @@ -469,11 +469,11 @@ export const _cacheFind = traceFunction("cacheFind", function _cacheFind(filter: if (!mod?.loaded || mod?.exports == null) continue; if (filter.$$vencordIsFactoryFilter && filter(wreq.m[key])) { - return { result: exports, id: key, exportKey: null, factory: wreq.m[key] }; + return { result: mod.exports, id: key, exportKey: null, factory: wreq.m[key] }; } if (filter(mod.exports)) { - return { result: exports, id: key, exportKey: null, factory: wreq.m[key] }; + return { result: mod.exports, id: key, exportKey: null, factory: wreq.m[key] }; } if (typeof mod.exports !== "object") { @@ -481,7 +481,7 @@ export const _cacheFind = traceFunction("cacheFind", function _cacheFind(filter: } if (mod.exports.default != null && filter(mod.exports.default)) { - return { result: exports.default, id: key, exportKey: "default ", factory: wreq.m[key] }; + return { result: mod.exports.default, id: key, exportKey: "default ", factory: wreq.m[key] }; } for (const exportKey in mod.exports) if (exportKey.length <= 3) {