diff --git a/src/webpack/patchWebpack.ts b/src/webpack/patchWebpack.ts index 944d83e86..d3d722b7a 100644 --- a/src/webpack/patchWebpack.ts +++ b/src/webpack/patchWebpack.ts @@ -60,11 +60,7 @@ define(Function.prototype, "O", { define(this, "O", { value: onChunksLoaded }); const { stack } = new Error(); - if (!stack?.includes("discord.com") && !stack?.includes("discordapp.com")) { - return; - } - - if (this.m == null) { + if (this.m == null || !(stack?.includes("discord.com") || stack?.includes("discordapp.com"))) { return; }