From ff07d47c0da9bb64cf75d643410e26af65c0cdeb Mon Sep 17 00:00:00 2001 From: curly Date: Wed, 1 Mar 2023 10:54:33 -0700 Subject: typo with date comparing --- src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/main.ts b/src/main.ts index f3a0461..28fdd6c 100644 --- a/src/main.ts +++ b/src/main.ts @@ -372,7 +372,7 @@ async function chatwindow(hash: any = undefined, hl = false) { for (let v of array) { latest_v = v; let date = new Date(v.date * 1000); - if (date.getDate() > old_date.getDate() || date.getFullYear() > old_date.getFullYear() || date.getMonth() > date.getMonth()) { + if (date.getDate() > old_date.getDate() || date.getFullYear() > old_date.getFullYear() || date.getMonth() > old_date.getMonth()) { old_date = date; window.append(to_dom(`${date.getDate()}/${date.getMonth()}/${date.getFullYear()}`)) } -- cgit v1.2.3