From 97699f623b1a9cec8103816b8196b3f4e24195b3 Mon Sep 17 00:00:00 2001 From: curly Date: Fri, 17 Feb 2023 14:57:06 -0700 Subject: forgot to cleanup --- src/main.ts | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src') diff --git a/src/main.ts b/src/main.ts index 3317fb2..889b291 100644 --- a/src/main.ts +++ b/src/main.ts @@ -92,7 +92,6 @@ function format_date(d: number) { let date = new Date(d * 1000); let hours = format_time(date.getHours()); let minutes = format_time(date.getMinutes()); - // let seconds = format_time(date.getSeconds()); return `${hours}:${minutes}`; } @@ -255,7 +254,6 @@ function get_newest_messages(): void { chatwindow(newest_id) initial = false } else { - console.log("new messages") chatwindow() new_messages.style.display = "unset" } @@ -366,7 +364,6 @@ async function chatwindow(hash: any = undefined, hl = false) { } ); - console.log("before") let old_date = new Date(0); let latest_v; for (let v of array) { @@ -391,11 +388,6 @@ async function chatwindow(hash: any = undefined, hl = false) { window.appendChild(dom); } - // if (hash == null) { - // console.log(hash) - // return - // } - if (scrolltop == pre_scroll) { if (latest_v != undefined && hash == undefined) { getelementbyid(latest_v.id).scrollIntoView(); -- cgit v1.2.3