aboutsummaryrefslogtreecommitdiff
path: root/static/script.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/script.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/script.ts')
-rw-r--r--static/script.ts5
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