This commit is contained in:
Nuckyz 2024-07-24 18:03:21 -03:00 committed by GitHub
parent 9e6f24cc92
commit 026e716710
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;