replaced innerText with textContent and fixed themes

This commit is contained in:
MathMan05
2024-06-20 12:56:44 -05:00
parent 4e4c34454a
commit e5ead8a77e
13 changed files with 74 additions and 82 deletions

View File

@@ -81,7 +81,7 @@ class group extends channel{
const div=document.createElement("div")
div.classList.add("channeleffects");
const myhtml=document.createElement("span");
myhtml.innerText=this.name;
myhtml.textContent=this.name;
div.appendChild(this.user.buildpfp());
div.appendChild(myhtml);
div.myinfo=this;
@@ -95,7 +95,7 @@ class group extends channel{
this.owner.owner.channelfocus=this.id;
this.putmessages();
history.pushState(null, null,"/channels/"+this.guild_id+"/"+this.id);
document.getElementById("channelname").innerText="@"+this.name;
document.getElementById("channelname").textContent="@"+this.name;
}
messageCreate(messagep,focus){
const messagez=new cmessage(messagep.d,this);
@@ -137,12 +137,12 @@ class group extends channel{
}
}
if(this.hasunreads){
if(current){current.noti.innerText=this.mentions;return;}
if(current){current.noti.textContent=this.mentions;return;}
const div=document.createElement("div");
div.classList.add("servernoti");
const noti=document.createElement("div");
noti.classList.add("unread","notiunread","pinged");
noti.innerText=this.mentions;
noti.textContent=this.mentions;
console.log(this.mentions)
div.noti=noti;
div.append(noti)