I can never not forget something

This commit is contained in:
Nuckyz 2024-05-24 03:09:25 -03:00
parent 9bbec66ea5
commit f727d101fc
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

View file

@ -19,8 +19,8 @@ const initCallbackRegex = canonicalizeMatch(/{return \i\(".+?"\)}/);
/** A set with all the module factories objects */ /** A set with all the module factories objects */
const allModuleFactories = new Set<WebpackRequire["m"]>(); const allModuleFactories = new Set<WebpackRequire["m"]>();
function defineModuleFactoryGetter(modules: WebpackRequire["m"], id: PropertyKey, factory: ModuleFactory) { function defineModuleFactoryGetter(modulesFactories: WebpackRequire["m"], id: PropertyKey, factory: ModuleFactory) {
Object.defineProperty(modules, id, { Object.defineProperty(modulesFactories, id, {
get: () => { get: () => {
// $$vencordOriginal means the factory is already patched // $$vencordOriginal means the factory is already patched
// @ts-ignore // @ts-ignore