aboutsummaryrefslogtreecommitdiff
path: root/static/globals.ts
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-06-12 03:25:56 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2022-06-13 12:09:07 +0200
commit15bba899c326a30d21fd7d1bdbaec4afe44e47f9 (patch)
tree9baca5d4bd177f4498a4caf78ac740df25e69b4e /static/globals.ts
parentEnsure datetime gets set for generated time tags. (diff)
downloadcalp-15bba899c326a30d21fd7d1bdbaec4afe44e47f9.tar.gz
calp-15bba899c326a30d21fd7d1bdbaec4afe44e47f9.tar.xz
Replace some .tagName with instanceof.
Diffstat (limited to 'static/globals.ts')
-rw-r--r--static/globals.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/static/globals.ts b/static/globals.ts
index ddc9113e..d90a3681 100644
--- a/static/globals.ts
+++ b/static/globals.ts
@@ -51,8 +51,8 @@ function find_block(uid: uid): ComponentBlock | null {
return null;
}
for (let el of obj.registered) {
- if (el.tagName.toLowerCase() === 'vevent-block') {
- return el as ComponentBlock;
+ if (el instanceof ComponentBlock) {
+ return el;
}
}
// throw 'Popup not fonud';