From 3cf702a2ba35cfcedce695ed444ad3ad0b5e6e1a Mon Sep 17 00:00:00 2001 From: Nuckyz <61953774+Nuckyz@users.noreply.github.com> Date: Fri, 21 Jun 2024 05:01:35 -0300 Subject: [PATCH] fixes --- src/webpack/patchWebpack.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/webpack/patchWebpack.ts b/src/webpack/patchWebpack.ts index d257cc7a5..80676fd16 100644 --- a/src/webpack/patchWebpack.ts +++ b/src/webpack/patchWebpack.ts @@ -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); } // Webpack sometimes sets the value of module.exports directly, so assign exports to it to make sure we properly handle it