From b3d72678192902252613e654c3fada1e57250ba7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Mon, 22 Nov 2021 01:09:04 +0100 Subject: Change innerHTML to textContent. Also changed some innerText to textContent --- static/clock.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'static/clock.ts') 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) -- cgit v1.2.3