diff --git a/src/plugins/noProfileThemes/index.ts b/src/plugins/noProfileThemes/index.ts index c31f4283..e2b9327e 100644 --- a/src/plugins/noProfileThemes/index.ts +++ b/src/plugins/noProfileThemes/index.ts @@ -30,7 +30,7 @@ export default definePlugin({ // = isPremiumAtLeast(user.premiumType, TIER_2) match: /=(?=\i\.\i\.isPremiumAtLeast\(null==(\i))/, // = user.banner && isPremiumAtLeast(user.premiumType, TIER_2) - replace: "=$1?.banner&&" + replace: "=(arguments[0]?.bannerSrc||$1?.banner)&&" } }, { diff --git a/src/webpack/webpack.ts b/src/webpack/webpack.ts index 812e3607..3ef5ac80 100644 --- a/src/webpack/webpack.ts +++ b/src/webpack/webpack.ts @@ -63,10 +63,10 @@ export function _initWebpack(instance: typeof window.webpackChunkdiscord_app) { if (cache !== void 0) throw "no."; instance.push([[Symbol("Vencord")], {}, r => wreq = r]); + instance.pop(); if (!wreq) return false; cache = wreq.c; - instance.pop(); for (const id in cache) { const { exports } = cache[id];