diff options
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'; |