From 93c40e8eeaef8e1609759fb1f0cad1fc9285ab86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Thu, 11 Nov 2021 16:28:49 +0100 Subject: Made VIEW and EDIT_MODE correctly global. --- static/globals.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'static/globals.ts') diff --git a/static/globals.ts b/static/globals.ts index be79dae7..b0871aa2 100644 --- a/static/globals.ts +++ b/static/globals.ts @@ -1,6 +1,5 @@ export { find_block, - VIEW, EDIT_MODE, vcal_objects, event_calendar_mapping } @@ -13,14 +12,12 @@ const event_calendar_mapping: Map = new Map; declare global { interface Window { vcal_objects: Map; + VIEW: 'month' | 'week'; + EDIT_MODE: boolean; } } window.vcal_objects = vcal_objects; -declare let VIEW: 'month' | 'week' -declare let EDIT_MODE: boolean - - function find_block(uid: uid): HTMLElement | null { let obj = vcal_objects.get(uid) if (obj === undefined) { -- cgit v1.2.3