I can never not forget something
This commit is contained in:
parent
ae10d3667c
commit
b192c89146
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue