diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-06-12 03:25:56 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-06-13 12:09:07 +0200 |
commit | 15bba899c326a30d21fd7d1bdbaec4afe44e47f9 (patch) | |
tree | 9baca5d4bd177f4498a4caf78ac740df25e69b4e /static/globals.ts | |
parent | Ensure datetime gets set for generated time tags. (diff) | |
download | calp-15bba899c326a30d21fd7d1bdbaec4afe44e47f9.tar.gz calp-15bba899c326a30d21fd7d1bdbaec4afe44e47f9.tar.xz |
Replace some .tagName with instanceof.
Diffstat (limited to 'static/globals.ts')
-rw-r--r-- | static/globals.ts | 4 |
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'; |