diff --git a/src/webpack/patchWebpack.ts b/src/webpack/patchWebpack.ts index e460747d5..b35c27759 100644 --- a/src/webpack/patchWebpack.ts +++ b/src/webpack/patchWebpack.ts @@ -209,7 +209,7 @@ function defineModulesFactoryGetter(id: PropertyKey, factory: WrappedModuleFacto }, set(newFactory: AnyModuleFactory) { if (factory.$$vencordOriginal != null) { - factory.toString = newFactory.toString.bind(v); + factory.toString = newFactory.toString.bind(newFactory); factory.$$vencordOriginal = newFactory; } else { factory = newFactory;