get rid of bad innerHTML

This commit is contained in:
MathMan05 2024-11-02 16:25:19 -05:00
parent 91a90ca1d4
commit a8f55d0ae6

View file

@ -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", "");