aboutsummaryrefslogtreecommitdiff
path: root/src/main.ts
diff options
context:
space:
mode:
authorcurly <curlybryce@protonmail.com>2023-03-01 10:54:33 -0700
committercurly <curlybryce@protonmail.com>2023-03-01 10:54:33 -0700
commitff07d47c0da9bb64cf75d643410e26af65c0cdeb (patch)
treebada2fb108ba16e61d4e96039e7f4fd77e1195e6 /src/main.ts
parenta4e02bd4c00e3456594eda5c2fc55b0900a4cec9 (diff)
downloadrocket_test_ui-master.tar.gz
rocket_test_ui-master.tar.bz2
rocket_test_ui-master.zip
typo with date comparingHEADmaster
Diffstat (limited to 'src/main.ts')
-rw-r--r--src/main.ts2
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>`))
}