get rid of bad innerHTML
This commit is contained in:
parent
91a90ca1d4
commit
a8f55d0ae6
1 changed files with 3 additions and 2 deletions
|
@ -803,10 +803,11 @@ class Channel extends SnowFlake{
|
|||
this.localuser.pageTitle("#" + this.name);
|
||||
const channelTopic = document.getElementById("channelTopic") as HTMLSpanElement;
|
||||
if(this.topic){
|
||||
channelTopic.innerHTML = new MarkDown(
|
||||
channelTopic.innerHTML ="";
|
||||
channelTopic.append(new MarkDown(
|
||||
this.topic,
|
||||
this
|
||||
).makeHTML().innerHTML;
|
||||
).makeHTML());
|
||||
channelTopic.removeAttribute("hidden");
|
||||
}else channelTopic.setAttribute("hidden", "");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue