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/popup.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'static/popup.ts') diff --git a/static/popup.ts b/static/popup.ts index ce643854..908787ae 100644 --- a/static/popup.ts +++ b/static/popup.ts @@ -1,4 +1,4 @@ -import { VIEW, find_block } from './globals' +import { find_block } from './globals' import { PopupElement } from './components/popup-element' import { uid } from './types' @@ -60,7 +60,7 @@ function open_popup(popup: HTMLElement) { let element = event_from_popup(popup); // let root = document.body; let root; - switch (VIEW) { + switch (window.VIEW) { case 'week': root = document.getElementsByClassName("days")[0]; break; -- cgit v1.2.3