Fix null color
This commit is contained in:
parent
908ae7ae3d
commit
fd41123a0b
|
@ -24,7 +24,7 @@ class Message {
|
|||
|
||||
let name = document.createElement('span');
|
||||
name.className = "text name";
|
||||
name.style.color = readableColor(this.context.color);
|
||||
name.style.color = readableColor(this.context.color || "#ff0000");
|
||||
name.innerHTML = escapeHtml(this.context["display-name"]);
|
||||
badges.appendChild(name);
|
||||
|
||||
|
|
Loading…
Reference in New Issue