aboutsummaryrefslogtreecommitdiff
path: root/static/popup.ts
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--static/popup.ts4
1 files changed, 2 insertions, 2 deletions
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;