aboutsummaryrefslogtreecommitdiff
path: root/static/clock.ts
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2021-11-22 01:09:04 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2021-11-22 01:09:04 +0100
commitb3d72678192902252613e654c3fada1e57250ba7 (patch)
tree69cb22231f401227b169ce6a7b1c9637140cf1a4 /static/clock.ts
parentRework popup components. (diff)
downloadcalp-b3d72678192902252613e654c3fada1e57250ba7.tar.gz
calp-b3d72678192902252613e654c3fada1e57250ba7.tar.xz
Change innerHTML to textContent.
Also changed some innerText to textContent
Diffstat (limited to 'static/clock.ts')
-rw-r--r--static/clock.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/static/clock.ts b/static/clock.ts
index 9171b8a8..a2d22e00 100644
--- a/static/clock.ts
+++ b/static/clock.ts
@@ -110,7 +110,7 @@ customElements.define('today-button', TodayButton)
class CurrentTime extends ClockElement {
update(now: Date) {
- this.innerHTML = now.format('~H:~M:~S')
+ this.textContent = now.format('~H:~M:~S')
}
}
customElements.define('current-time', CurrentTime)