get rid of eccesive loggin

This commit is contained in:
MathMan05 2024-09-03 11:06:30 -05:00
parent e3086efb82
commit 66a13c3407
10 changed files with 0 additions and 34 deletions

View file

@ -40,18 +40,15 @@ class Channel extends SnowFlake {
messages = new Map();
static setupcontextmenu() {
this.contextmenu.addbutton("Copy channel id", function () {
console.log(this);
navigator.clipboard.writeText(this.id);
});
this.contextmenu.addbutton("Mark as read", function () {
console.log(this);
this.readbottom();
});
this.contextmenu.addbutton("Settings[temp]", function () {
this.generateSettings();
});
this.contextmenu.addbutton("Delete channel", function () {
console.log(this);
this.deleteChannel();
}, null, function () {
return this.isAdmin();
@ -169,7 +166,6 @@ class Channel extends SnowFlake {
return this.idToNext.get(id);
}
else {
console.log("at bottom");
}
}
}), (async (id) => {
@ -699,7 +695,6 @@ class Channel extends SnowFlake {
this.makereplybox();
await this.buildmessages();
//loading.classList.remove("loading");
console.log(this);
document.getElementById("typebox").contentEditable = "" + this.canMessage;
}
static regenLoadingMessages() {

View file

@ -25,15 +25,12 @@ class Guild extends SnowFlake {
static contextmenu = new Contextmenu("guild menu");
static setupcontextmenu() {
Guild.contextmenu.addbutton("Copy Guild id", function () {
console.log(this);
navigator.clipboard.writeText(this.id);
});
Guild.contextmenu.addbutton("Mark as read", function () {
console.log(this);
this.markAsRead();
});
Guild.contextmenu.addbutton("Notifications", function () {
console.log(this);
this.setnotifcation();
});
Guild.contextmenu.addbutton("Leave guild", function () {
@ -47,7 +44,6 @@ class Guild extends SnowFlake {
return this.properties.owner_id === this.member.user.id;
});
Guild.contextmenu.addbutton("Create invite", function () {
console.log(this);
}, null, _ => true, _ => false);
Guild.contextmenu.addbutton("Settings[temp]", function () {
this.generateSettings();
@ -467,7 +463,6 @@ class Guild extends SnowFlake {
1
],
["textbox", "Name of channel", "", function () {
console.log(this);
name = this.value;
}],
["button", "", "submit", function () {
@ -482,7 +477,6 @@ class Guild extends SnowFlake {
const category = 4;
const channelselect = new Dialog(["vdiv",
["textbox", "Name of category", "", function () {
console.log(this);
name = this.value;
}],
["button", "", "submit", () => {

View file

@ -258,7 +258,6 @@ class InfiniteScroller {
element = thing[0];
}
}
console.log(id, element, this.HTMLElements.length, ":3");
if (element) {
if (flash) {
element.scrollIntoView({

View file

@ -556,7 +556,6 @@ class Localuser {
channels.innerHTML = "";
const html = guild.getHTML();
channels.appendChild(html);
console.log("found :3", html);
return guild;
}
buildservers() {
@ -1377,7 +1376,6 @@ class Localuser {
this.presences.set(thing.user.id, thing);
}
}
console.log(chunk);
chunk.members ??= [];
const arr = this.noncebuild.get(chunk.nonce);
if (!arr)
@ -1388,7 +1386,6 @@ class Localuser {
}
arr[2].push(chunk.chunk_index);
if (arr[2].length === chunk.chunk_count) {
console.log("got through");
this.noncebuild.delete(chunk.nonce);
const func = this.noncemap.get(chunk.nonce);
if (!func)
@ -1460,7 +1457,6 @@ class Localuser {
}
func(undefined);
value.delete(thing);
console.log("failed");
}
}
this.fetchingmembers.delete(guildid);

View file

@ -115,7 +115,6 @@ class Specialuser {
}
}
set pfpsrc(e) {
console.log("this ran fr");
this.json.pfpsrc = e;
this.updateLocal();
}