Make Reporter runnable in desktop

This commit is contained in:
Nuckyz 2024-05-31 23:28:58 -03:00
parent 7ccd073506
commit d07e4c71b5
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9
8 changed files with 328 additions and 320 deletions

View file

@ -32,7 +32,7 @@ export class Logger {
constructor(public name: string, public color: string = "white") { }
private _log(level: "log" | "error" | "warn" | "info" | "debug", levelColor: string, args: any[], customFmt = "") {
if (IS_REPORTER && (level === "warn" || level === "error")) {
if (IS_REPORTER) {
console[level]("[Vencord]", this.name + ":", ...args);
return;
}