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/components/vevent.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/components/vevent.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/static/components/vevent.ts b/static/components/vevent.ts index 23eba0a9..cf28045a 100644 --- a/static/components/vevent.ts +++ b/static/components/vevent.ts @@ -60,9 +60,9 @@ class ComponentVEvent extends HTMLElement { let d, fmt; if ((d = data.getProperty(p))) { if ((fmt = el.dataset.fmt)) { - el.innerHTML = d.format(fmt); + el.textContent = d.format(fmt); } else { - el.innerHTML = d; + el.textContent = d; } } } |