refactoring, work on environment

This commit is contained in:
Géry Debongnie
2019-01-23 14:28:41 +01:00
parent 08938d2334
commit 76fedae5a9
18 changed files with 138 additions and 63 deletions
+2 -1
View File
@@ -1,9 +1,10 @@
///<amd-module name="main" />
import RootWidget from "./widgets/root_widget";
import env from "./env";
import {makeEnvironment} from "./env";
document.addEventListener("DOMContentLoaded", async function() {
const env = makeEnvironment();
const rootWidget = new RootWidget(env);
await rootWidget.mount(document.body);
});