aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorcurly <curlybryce@protonmail.com>2023-02-17 14:57:06 -0700
committercurly <curlybryce@protonmail.com>2023-02-17 14:57:06 -0700
commit97699f623b1a9cec8103816b8196b3f4e24195b3 (patch)
tree9359062cddf06719766cf49e47f09387ac5f5004 /src
parent036eef8314f285d5a65ab960be2f6912443d988c (diff)
downloadrocket_test_ui-97699f623b1a9cec8103816b8196b3f4e24195b3.tar.gz
rocket_test_ui-97699f623b1a9cec8103816b8196b3f4e24195b3.tar.bz2
rocket_test_ui-97699f623b1a9cec8103816b8196b3f4e24195b3.zip
forgot to cleanup
Diffstat (limited to 'src')
-rw-r--r--src/main.ts8
1 files changed, 0 insertions, 8 deletions
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();