Added service worker support, needs work

You must manually enable support, I'm not having it on untill it'll work without issues all of the time :P
This commit is contained in:
MathMan05 2024-06-17 16:16:57 -05:00
parent 26f106c517
commit c794ae46c7
9 changed files with 126 additions and 14 deletions

View file

@ -59,7 +59,6 @@ class group extends channel{
this.owner=owner;
this.headers=this.owner.headers;
this.messages=[];
console.log(JSON.recipients,JSON)
this.name=JSON.recipients[0]?.username;
if(JSON.recipients[0]){
this.user=new user(JSON.recipients[0]);
@ -137,7 +136,6 @@ class group extends channel{
current=thing;
}
}
console.log(current,this.hasunreads);
if(this.hasunreads){
if(current){current.noti.innerText=this.mentions;return;}
const div=document.createElement("div");
@ -159,10 +157,10 @@ class group extends channel{
this.all.getHTML();
}
}else if(current){
console.log("remove")
current.remove();
}else{
console.log(sentdms.children)
}
}
}