From dd4d80872efbddba326ecd4c22740ecd496a5949 Mon Sep 17 00:00:00 2001 From: Nuckyz <61953774+Nuckyz@users.noreply.github.com> Date: Sat, 1 Jun 2024 00:17:15 -0300 Subject: [PATCH] fix reporter part 2 --- src/debug/runReporter.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/debug/runReporter.ts b/src/debug/runReporter.ts index 7b625b01b..b8bfc759e 100644 --- a/src/debug/runReporter.ts +++ b/src/debug/runReporter.ts @@ -30,7 +30,7 @@ async function runReporter() { }, "Vencord Reporter"); // @ts-ignore - Webpack._initReporter = function () { + Vencord.Webpack._initReporter = function () { // initReporter is called in the patched entry point of Discord // setImmediate to only start searching for lazy chunks after Discord initialized the app setTimeout(() => { @@ -242,4 +242,5 @@ async function runReporter() { } } -runReporter(); +// Run after the Vencord object has been created +setTimeout(runReporter, 0);