From 1ff53d9aed85aa31aafcbb72a00fc5f7eb761374 Mon Sep 17 00:00:00 2001 From: oldmud0 Date: Mon, 1 Jul 2019 22:58:47 -0500 Subject: Ugh! It lives! --- webAO/ui.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'webAO/ui.js') 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")); -- cgit