diff options
| author | oldmud0 <oldmud0@users.noreply.github.com> | 2019-07-01 22:58:47 -0500 |
|---|---|---|
| committer | oldmud0 <oldmud0@users.noreply.github.com> | 2019-07-01 22:58:47 -0500 |
| commit | 1ff53d9aed85aa31aafcbb72a00fc5f7eb761374 (patch) | |
| tree | efe66c3055abdef75376e0bde3aaeb55cc850bcd /webAO/ui.js | |
| parent | 393142f7001269140897a8ca191884e8c29bb699 (diff) | |
Ugh! It lives!
Diffstat (limited to 'webAO/ui.js')
| -rw-r--r-- | webAO/ui.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/webAO/ui.js b/webAO/ui.js index 4aace2d..b44b425 100644 --- a/webAO/ui.js +++ b/webAO/ui.js @@ -1,8 +1,9 @@ /* eslint indent: ["error", 2] */ -import GoldenLayout from "./golden/js/goldenlayout.js"; +// import GoldenLayout from "./golden/js/goldenlayout.js"; +import GoldenLayout from "golden-layout"; -var config = { +const config = { settings: { showPopoutIcon: false, showCloseIcon: false @@ -63,9 +64,9 @@ var config = { }] }; -var golden = new GoldenLayout(config); +const golden = new GoldenLayout(config); golden.registerComponent("template", function (container, componentState) { - let template = document.querySelector(`#${componentState.id}`); + const template = document.querySelector(`#${componentState.id}`); container.getElement().html(template.content); // TODO: support multiple locales // container.setTitle(document.querySelector(`#${componentState.id} meta[name='frame-title']`).getAttribute("content")); |
