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/script.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 '')
-rw-r--r-- | static/script.ts | 5 |
1 files changed, 4 insertions, 1 deletions
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 |