Fixed undefines within links

canary
WolverinDEV 2019-10-26 18:43:43 +02:00
parent 7ccd34476a
commit 2c9255341f
1 changed files with 1 additions and 1 deletions

View File

@ -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 {