From 64262001e8a4d6203864fcf76906238980a31df1 Mon Sep 17 00:00:00 2001 From: Nuckyz <61953774+Nuckyz@users.noreply.github.com> Date: Tue, 28 May 2024 17:14:35 -0300 Subject: [PATCH] boop --- src/webpack/patchWebpack.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/webpack/patchWebpack.ts b/src/webpack/patchWebpack.ts index 40c428e65..6cbcd2a46 100644 --- a/src/webpack/patchWebpack.ts +++ b/src/webpack/patchWebpack.ts @@ -89,13 +89,13 @@ define(Function.prototype, "m", { }); // The proxy responsible for patching the module factories when they are set, or definining getters for the patched versions - moduleFactories = new Proxy(moduleFactories, moduleFactoriesHandler); + const proxiedModuleFactories = new Proxy(moduleFactories, moduleFactoriesHandler); /* If Discord ever decides to set module factories using the variable of the modules object directly, instead of wreq.m, switch the proxy to the prototype Reflect.setPrototypeOf(moduleFactories, new Proxy(moduleFactories, moduleFactoriesHandler)); */ - define(this, "m", { value: moduleFactories }); + define(this, "m", { value: proxiedModuleFactories }); // Patch the pre-populated factories for (const id in moduleFactories) {