diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2021-11-22 01:09:04 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2021-11-22 01:09:04 +0100 |
commit | b3d72678192902252613e654c3fada1e57250ba7 (patch) | |
tree | 69cb22231f401227b169ce6a7b1c9637140cf1a4 /static/clock.ts | |
parent | Rework popup components. (diff) | |
download | calp-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.ts | 2 |
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) |