aboutsummaryrefslogtreecommitdiff
path: root/src/main.ts
diff options
context:
space:
mode:
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>`))
}