This commit is contained in:
Nuckyz 2024-07-07 15:15:45 -03:00
parent 920fb20d8e
commit c8356570a3
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

View file

@ -95,7 +95,7 @@ define(Function.prototype, "m", {
const proxiedModuleFactories = new Proxy(originalModules, 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
define(this, "m", { value: Reflect.setPrototypeOf(originalModules, new Proxy(originalModules, moduleFactoriesHandler)) });
Reflect.setPrototypeOf(originalModules, new Proxy(originalModules, moduleFactoriesHandler));
*/
define(this, "m", { value: proxiedModuleFactories });