From fd41123a0bfafdaf274a74ea2b770a97dbef89ba Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Tue, 7 Apr 2020 23:41:49 +0200 Subject: [PATCH] Fix null color --- static/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/main.js b/static/main.js index ec09b3d..0a38607 100644 --- a/static/main.js +++ b/static/main.js @@ -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);