update comment

This commit is contained in:
Nuckyz 2024-06-12 22:32:42 -03:00
parent 8d31f3cf62
commit d473d52047
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

View file

@ -339,8 +339,7 @@ function patchFactory(id: PropertyKey, factory: AnyModuleFactory) {
// The patched factory wrapper, define it in an object to preserve the name after minification // The patched factory wrapper, define it in an object to preserve the name after minification
const patchedFactory: PatchedModuleFactory = { const patchedFactory: PatchedModuleFactory = {
PatchedFactory(...args: Parameters<AnyModuleFactory>) { PatchedFactory(...args: Parameters<AnyModuleFactory>) {
// Restore the original factory in all the module factories objects, // Restore the original factory in all the module factories objects. We want to make sure the original factory is restored properly, no matter what is the Webpack instance
// because we want to make sure the original factory is restored properly, no matter what is the Webpack instance
for (const wreq of allWebpackInstances) { for (const wreq of allWebpackInstances) {
define(wreq.m, id, { value: patchedFactory.$$vencordOriginal }); define(wreq.m, id, { value: patchedFactory.$$vencordOriginal });
} }