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/script.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'static/script.ts') diff --git a/static/script.ts b/static/script.ts index 2f418918..df5e2c97 100644 --- a/static/script.ts +++ b/static/script.ts @@ -33,7 +33,10 @@ window.addEventListener('load', function() { for (let calendar of div2.children) { let calendar_name = calendar.getAttribute('key')!; for (let child of calendar.children) { - let uid = child.innerHTML; + let uid = child.textContent; + if (!uid) { + throw "UID required" + } event_calendar_mapping.set(uid, calendar_name); let obj = vcal_objects.get(uid); if (obj) obj.calendar = calendar_name -- cgit v1.2.3