Merge branch 'modules-proxy-patches' into immediate-finds-modules-proxy

This commit is contained in:
Nuckyz 2024-07-07 15:15:58 -03:00
commit cce8f14d72
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

View file

@ -97,7 +97,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 });