get rid of bad innerHTML
This commit is contained in:
@@ -803,10 +803,11 @@ class Channel extends SnowFlake{
|
|||||||
this.localuser.pageTitle("#" + this.name);
|
this.localuser.pageTitle("#" + this.name);
|
||||||
const channelTopic = document.getElementById("channelTopic") as HTMLSpanElement;
|
const channelTopic = document.getElementById("channelTopic") as HTMLSpanElement;
|
||||||
if(this.topic){
|
if(this.topic){
|
||||||
channelTopic.innerHTML = new MarkDown(
|
channelTopic.innerHTML ="";
|
||||||
|
channelTopic.append(new MarkDown(
|
||||||
this.topic,
|
this.topic,
|
||||||
this
|
this
|
||||||
).makeHTML().innerHTML;
|
).makeHTML());
|
||||||
channelTopic.removeAttribute("hidden");
|
channelTopic.removeAttribute("hidden");
|
||||||
}else channelTopic.setAttribute("hidden", "");
|
}else channelTopic.setAttribute("hidden", "");
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user