fix url bugs and improve account switcher
This commit is contained in:
parent
0fe2966ad1
commit
5148e1b77b
19 changed files with 186 additions and 175 deletions
|
@ -48,7 +48,7 @@ class User {
|
|||
navigator.clipboard.writeText(this.id.id);
|
||||
});
|
||||
this.contextmenu.addbutton("Message user", function () {
|
||||
fetch(this.info.api.toString() + "/v9/users/@me/channels", { method: "POST",
|
||||
fetch(this.info.api + "/v9/users/@me/channels", { method: "POST",
|
||||
body: JSON.stringify({ "recipients": [this.id.id] }),
|
||||
headers: this.localuser.headers
|
||||
});
|
||||
|
@ -141,10 +141,10 @@ class User {
|
|||
return this.avatar;
|
||||
}
|
||||
if (this.avatar != null) {
|
||||
return this.info.cdn.toString() + "/avatars/" + this.id + "/" + this.avatar + ".png";
|
||||
return this.info.cdn + "/avatars/" + this.id + "/" + this.avatar + ".png";
|
||||
}
|
||||
else {
|
||||
return this.info.cdn.toString() + "/embed/avatars/3.png";
|
||||
return this.info.cdn + "/embed/avatars/3.png";
|
||||
}
|
||||
}
|
||||
createjankpromises() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue