who cares about logging in :)

This commit is contained in:
Nuckyz 2024-08-23 20:26:03 -03:00
parent 0379beb0ba
commit 262319a97c
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

View file

@ -299,20 +299,9 @@ page.on("pageerror", e => {
}
});
async function reporterRuntime(token: string) {
Vencord.Webpack.waitFor(
Vencord.Webpack.filters.byProps("loginToken"),
m => {
console.log("[PUP_DEBUG]", "Logging in with token...");
m.loginToken(token);
}
);
}
await page.evaluateOnNewDocument(`
if (location.host.endsWith("discord.com")) {
${readFileSync("./dist/browser.js", "utf-8")};
(${reporterRuntime.toString()})(${JSON.stringify(process.env.DISCORD_TOKEN)});
}
`);