aboutsummaryrefslogtreecommitdiff
path: root/webAO/ui.js
diff options
context:
space:
mode:
Diffstat (limited to 'webAO/ui.js')
-rw-r--r--webAO/ui.js9
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"));