fix reporter part 2
This commit is contained in:
parent
0aff3c29bc
commit
dd4d80872e
|
@ -30,7 +30,7 @@ async function runReporter() {
|
||||||
}, "Vencord Reporter");
|
}, "Vencord Reporter");
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
Webpack._initReporter = function () {
|
Vencord.Webpack._initReporter = function () {
|
||||||
// initReporter is called in the patched entry point of Discord
|
// initReporter is called in the patched entry point of Discord
|
||||||
// setImmediate to only start searching for lazy chunks after Discord initialized the app
|
// setImmediate to only start searching for lazy chunks after Discord initialized the app
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
@ -242,4 +242,5 @@ async function runReporter() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
runReporter();
|
// Run after the Vencord object has been created
|
||||||
|
setTimeout(runReporter, 0);
|
||||||
|
|
Loading…
Reference in a new issue