Add shortcut for lazy loading chunks

This commit is contained in:
Nuckyz 2024-06-01 18:39:01 -03:00
parent 78fd37a4c6
commit d8524b087c
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9
8 changed files with 191 additions and 162 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) {
if (IS_REPORTER && IS_WEB) {
console[level]("[Vencord]", this.name + ":", ...args);
return;
}