From 69b4fa23cc80bdcc2ad425e30f6d130cff125d61 Mon Sep 17 00:00:00 2001 From: Vendicated Date: Thu, 26 Oct 2023 22:51:03 +0200 Subject: [PATCH] fix not removing vencord 'chunks' from webpack --- src/webpack/webpack.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webpack/webpack.ts b/src/webpack/webpack.ts index 812e36079..3ef5ac80a 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];