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

@@ -37,14 +37,12 @@ class cmessage{
},null,_=>{return _.author.id==READY.d.user.id});
}
constructor(messagejson,owner){
console.log(owner)
this.owner=owner;
this.headers=this.owner.headers;
for(const thing of Object.keys(messagejson)){
this[thing]=messagejson[thing];
}
this.author=new user(this.author);
console.log(this.type)
}
messageevents(obj){
cmessage.contextmenu.bind(obj,this)
@@ -182,7 +180,6 @@ class cmessage{
messagedwrap.append(time);
texttxt.appendChild(messagedwrap)
console.log(div)
}
div.userid=this.author.id;
div.all=this;