fix non string logs
This commit is contained in:
parent
564e0f3935
commit
787b7495b3
|
@ -27,7 +27,7 @@ class SmartWebSocket{
|
||||||
if (color && typeof message == "string") {
|
if (color && typeof message == "string") {
|
||||||
console[method]("%c%s\t | %c%s", "font-weight: bold; color: cyan;", this.debugName ?? this.url, `color: ${color};`, message);
|
console[method]("%c%s\t | %c%s", "font-weight: bold; color: cyan;", this.debugName ?? this.url, `color: ${color};`, message);
|
||||||
} else {
|
} 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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in New Issue