Fixed regretion now users are able to update pfp

This commit is contained in:
MathMan05 2024-06-18 21:45:43 -05:00
parent 52207b0065
commit 921dbcf0dd

View file

@ -127,7 +127,6 @@ class localuser{
if(this.initialized){
const users=user.userids[temp.d.id];
console.log(users,temp.d.id)
if(users){
users.userupdate(temp.d);
console.log("in here");
@ -395,7 +394,8 @@ class localuser{
updatepfp(file){
var reader = new FileReader();
reader.readAsDataURL(file);
reader.onload = function () {
console.log(this.headers);
reader.onload = () =>{
fetch(info.api.toString()+"/v9/users/@me",{
method:"PATCH",
headers:this.headers,