aboutsummaryrefslogtreecommitdiff
path: root/static/globals.ts
diff options
context:
space:
mode:
Diffstat (limited to 'static/globals.ts')
-rw-r--r--static/globals.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/static/globals.ts b/static/globals.ts
index b0871aa2..7ccfb3d2 100644
--- a/static/globals.ts
+++ b/static/globals.ts
@@ -5,6 +5,7 @@ export {
import { VEvent } from './vevent'
import { uid } from './types'
+import { ComponentBlock } from './components/vevent-block'
const vcal_objects: Map<uid, VEvent> = new Map;
const event_calendar_mapping: Map<uid, string> = new Map;
@@ -18,14 +19,14 @@ declare global {
}
window.vcal_objects = vcal_objects;
-function find_block(uid: uid): HTMLElement | null {
+function find_block(uid: uid): ComponentBlock | null {
let obj = vcal_objects.get(uid)
if (obj === undefined) {
return null;
}
for (let el of obj.registered) {
if (el.tagName === 'vevent-block') {
- return el;
+ return el as ComponentBlock;
}
}
// throw 'Popup not fonud';