fix non string logs

This commit is contained in:
Luca Conte 2024-08-22 00:06:21 +02:00
parent 564e0f3935
commit 787b7495b3
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ class SmartWebSocket{
if (color && typeof message == "string") {
console[method]("%c%s\t | %c%s", "font-weight: bold; color: cyan;", this.debugName ?? this.url, `color: ${color};`, message);
} else {
console[method]("%c%s\t | %c%s", "font-weight: bold; color: cyan;", this.debugName ?? this.url, "", message);
console[method]("%c%s\t |", "font-weight: bold; color: cyan;", this.debugName ?? this.url, message);
}
}