Fix null color

This commit is contained in:
Thomas Forgione 2020-04-07 23:41:49 +02:00
parent 908ae7ae3d
commit fd41123a0b
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ class Message {
let name = document.createElement('span'); let name = document.createElement('span');
name.className = "text name"; 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"]); name.innerHTML = escapeHtml(this.context["display-name"]);
badges.appendChild(name); badges.appendChild(name);