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

This commit is contained in:
Nuckyz 2024-06-21 05:01:44 -03:00
commit 8982a53b47
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

View file

@ -260,7 +260,7 @@ function wrapAndPatchFactory(id: PropertyKey, originalFactory: AnyModuleFactory)
}
if (IS_DEV) {
return wrappedFactory.$$vencordOriginal?.apply(this, args);
return wrappedFactory.$$vencordOriginal!.apply(this, args);
}
}
@ -275,7 +275,7 @@ function wrapAndPatchFactory(id: PropertyKey, originalFactory: AnyModuleFactory)
}
logger.error("Error in patched module factory:\n", err);
return wrappedFactory.$$vencordOriginal?.apply(this, args);
return wrappedFactory.$$vencordOriginal!.apply(this, args);
}
exports = module.exports;