From 6b648f3d381dbfc9027d8f85839a6fd26f4c7830 Mon Sep 17 00:00:00 2001 From: Nuckyz <61953774+Nuckyz@users.noreply.github.com> Date: Tue, 28 May 2024 17:12:36 -0300 Subject: [PATCH] oops! --- src/webpack/patchWebpack.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webpack/patchWebpack.ts b/src/webpack/patchWebpack.ts index 25d0d20f1..40c428e65 100644 --- a/src/webpack/patchWebpack.ts +++ b/src/webpack/patchWebpack.ts @@ -54,7 +54,7 @@ define(Function.prototype, "m", { // When using React DevTools or other extensions, we may also catch their Webpack here. // This ensures we actually got the right ones. const { stack } = new Error(); - if (!(stack?.includes("discord.com") || stack?.includes("discordapp.com")) && Array.isArray(moduleFactories)) { + if (!(stack?.includes("discord.com") || stack?.includes("discordapp.com")) || Array.isArray(moduleFactories)) { define(this, "m", { value: moduleFactories }); return; }