Merge branch 'modules-proxy-patches' into immediate-finds-modules-proxy
This commit is contained in:
commit
8982a53b47
|
@ -260,7 +260,7 @@ function wrapAndPatchFactory(id: PropertyKey, originalFactory: AnyModuleFactory)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (IS_DEV) {
|
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);
|
logger.error("Error in patched module factory:\n", err);
|
||||||
return wrappedFactory.$$vencordOriginal?.apply(this, args);
|
return wrappedFactory.$$vencordOriginal!.apply(this, args);
|
||||||
}
|
}
|
||||||
|
|
||||||
exports = module.exports;
|
exports = module.exports;
|
||||||
|
|
Loading…
Reference in a new issue