fixed bug
This commit is contained in:
parent
00570829d7
commit
f21b060da9
4 changed files with 2 additions and 5 deletions
|
@ -256,7 +256,7 @@ class Guild {
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
const div = document.createElement("div");
|
const div = document.createElement("div");
|
||||||
let build = "";
|
let build = this.properties.name.replace(/'s /g, " ").replace(/\w+/g, word => word[0]).replace(/\s/g, "");
|
||||||
for (const char of this.properties.name.split(" ")) {
|
for (const char of this.properties.name.split(" ")) {
|
||||||
build += char[0];
|
build += char[0];
|
||||||
}
|
}
|
||||||
|
|
|
@ -112,8 +112,6 @@ class Localuser {
|
||||||
User.clear();
|
User.clear();
|
||||||
}
|
}
|
||||||
async initwebsocket() {
|
async initwebsocket() {
|
||||||
if (!this.initialized)
|
|
||||||
return;
|
|
||||||
let returny = null;
|
let returny = null;
|
||||||
const promise = new Promise((res) => { returny = res; });
|
const promise = new Promise((res) => { returny = res; });
|
||||||
this.ws = new WebSocket(this.serverurls.gateway.toString() + "?encoding=json&v=9" + (DecompressionStream ? "&compress=zlib-stream" : ""));
|
this.ws = new WebSocket(this.serverurls.gateway.toString() + "?encoding=json&v=9" + (DecompressionStream ? "&compress=zlib-stream" : ""));
|
||||||
|
|
|
@ -266,7 +266,7 @@ class Guild{
|
||||||
Guild.contextmenu.bind(img,this);
|
Guild.contextmenu.bind(img,this);
|
||||||
}else{
|
}else{
|
||||||
const div=document.createElement("div");
|
const div=document.createElement("div");
|
||||||
let build="";
|
let build=this.properties.name.replace(/'s /g, " ").replace(/\w+/g, word => word[0]).replace(/\s/g, "");
|
||||||
for(const char of this.properties.name.split(" ")){
|
for(const char of this.properties.name.split(" ")){
|
||||||
build+=char[0];
|
build+=char[0];
|
||||||
}
|
}
|
||||||
|
|
|
@ -118,7 +118,6 @@ class Localuser{
|
||||||
User.clear();
|
User.clear();
|
||||||
}
|
}
|
||||||
async initwebsocket():Promise<void>{
|
async initwebsocket():Promise<void>{
|
||||||
if(!this.initialized) return;
|
|
||||||
let returny=null
|
let returny=null
|
||||||
const promise=new Promise((res)=>{returny=res});
|
const promise=new Promise((res)=>{returny=res});
|
||||||
this.ws = new WebSocket(this.serverurls.gateway.toString()+"?encoding=json&v=9"+(DecompressionStream?"&compress=zlib-stream":""));
|
this.ws = new WebSocket(this.serverurls.gateway.toString()+"?encoding=json&v=9"+(DecompressionStream?"&compress=zlib-stream":""));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue