diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2021-11-11 16:28:49 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2021-11-11 16:28:49 +0100 |
commit | 93c40e8eeaef8e1609759fb1f0cad1fc9285ab86 (patch) | |
tree | 0bec8403bddefbb4b0f9785765ce61ffbfba4106 /static/popup.ts | |
parent | Add madge for frontend dep visualization. (diff) | |
download | calp-93c40e8eeaef8e1609759fb1f0cad1fc9285ab86.tar.gz calp-93c40e8eeaef8e1609759fb1f0cad1fc9285ab86.tar.xz |
Made VIEW and EDIT_MODE correctly global.
Diffstat (limited to 'static/popup.ts')
-rw-r--r-- | static/popup.ts | 4 |
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; |