diff --git a/shared/js/ui/frames/chat_frame.ts b/shared/js/ui/frames/chat_frame.ts index 744a93c6..20039b8c 100644 --- a/shared/js/ui/frames/chat_frame.ts +++ b/shared/js/ui/frames/chat_frame.ts @@ -350,7 +350,7 @@ namespace chat { if(element.nodeType == Node.TEXT_NODE) return element.textContent; - return element.innerText + "-"; + return typeof(element.innerText) === "string" ? element.innerText : ""; } private htmlEscape(message: string) : string {