Fix: Ignore bundled lib webpack on web
This commit is contained in:
parent
5f8b96dced
commit
0a595120b9
1 changed files with 1 additions and 1 deletions
|
@ -122,7 +122,7 @@ Object.defineProperty(Function.prototype, "m", {
|
||||||
// When using react devtools or other extensions, we may also catch their webpack here.
|
// When using react devtools or other extensions, we may also catch their webpack here.
|
||||||
// This ensures we actually got the right one
|
// This ensures we actually got the right one
|
||||||
const { stack } = new Error();
|
const { stack } = new Error();
|
||||||
if (stack?.includes("discord.com") || stack?.includes("discordapp.com")) {
|
if ((stack?.includes("discord.com") || stack?.includes("discordapp.com")) && !Array.isArray(v)) {
|
||||||
logger.info("Found Webpack module factory", stack.match(/\/assets\/(.+?\.js)/)?.[1] ?? "");
|
logger.info("Found Webpack module factory", stack.match(/\/assets\/(.+?\.js)/)?.[1] ?? "");
|
||||||
patchFactories(v);
|
patchFactories(v);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue