diff options
author | curly <curlybryce@protonmail.com> | 2023-03-01 10:54:33 -0700 |
---|---|---|
committer | curly <curlybryce@protonmail.com> | 2023-03-01 10:54:33 -0700 |
commit | ff07d47c0da9bb64cf75d643410e26af65c0cdeb (patch) | |
tree | bada2fb108ba16e61d4e96039e7f4fd77e1195e6 /src | |
parent | a4e02bd4c00e3456594eda5c2fc55b0900a4cec9 (diff) | |
download | rocket_test_ui-ff07d47c0da9bb64cf75d643410e26af65c0cdeb.tar.gz rocket_test_ui-ff07d47c0da9bb64cf75d643410e26af65c0cdeb.tar.bz2 rocket_test_ui-ff07d47c0da9bb64cf75d643410e26af65c0cdeb.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/main.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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(`<span class="date">${date.getDate()}/${date.getMonth()}/${date.getFullYear()}</span>`)) } |