aboutsummaryrefslogtreecommitdiff
path: root/static/popup.ts
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2021-11-11 16:28:49 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2021-11-11 16:28:49 +0100
commit93c40e8eeaef8e1609759fb1f0cad1fc9285ab86 (patch)
tree0bec8403bddefbb4b0f9785765ce61ffbfba4106 /static/popup.ts
parentAdd madge for frontend dep visualization. (diff)
downloadcalp-93c40e8eeaef8e1609759fb1f0cad1fc9285ab86.tar.gz
calp-93c40e8eeaef8e1609759fb1f0cad1fc9285ab86.tar.xz
Made VIEW and EDIT_MODE correctly global.
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;