forked from mystiq/hydrogen-web
expose root view model as global variable for console inspecting
This commit is contained in:
parent
e0799181d9
commit
e080bf28a7
1 changed files with 1 additions and 0 deletions
|
@ -40,6 +40,7 @@ export default async function main(container) {
|
||||||
storageFactory,
|
storageFactory,
|
||||||
clock,
|
clock,
|
||||||
});
|
});
|
||||||
|
window.__brawlViewModel = vm;
|
||||||
await vm.load();
|
await vm.load();
|
||||||
const view = new BrawlView(vm);
|
const view = new BrawlView(vm);
|
||||||
container.appendChild(view.mount());
|
container.appendChild(view.mount());
|
||||||
|
|
Loading…
Reference in a new issue