aboutsummaryrefslogtreecommitdiff
path: root/xP/public
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2022-09-07 19:23:17 +0200
committerPřemysl Eric Janouch <p@janouch.name>2022-09-07 19:23:47 +0200
commit45aa0e8dfba2a51d26b6a4fe4990a1686ab4af65 (patch)
tree4fe8fce1495100b399dc1975cece68918501f53b /xP/public
parenta2d5995cf5b2d9f24ce6f2869a96ba3f75bb41d5 (diff)
downloadxK-45aa0e8dfba2a51d26b6a4fe4990a1686ab4af65.tar.gz
xK-45aa0e8dfba2a51d26b6a4fe4990a1686ab4af65.tar.xz
xK-45aa0e8dfba2a51d26b6a4fe4990a1686ab4af65.zip
xP: remember to differentiate today
Diffstat (limited to 'xP/public')
-rw-r--r--xP/public/xP.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/xP/public/xP.js b/xP/public/xP.js
index 0a939c2..a941752 100644
--- a/xP/public/xP.js
+++ b/xP/public/xP.js
@@ -402,6 +402,10 @@ let Buffer = {
lines.push(m('.time', {...attrs}, date.toLocaleTimeString()))
lines.push(m(Content, {...attrs}, line))
})
+
+ let dateMark = new Date().toLocaleDateString()
+ if (dateMark !== lastDateMark)
+ lines.push(m('.date', {}, dateMark))
return m('.buffer', {}, lines)
},
}