mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
expose root view model as global variable for console inspecting
This commit is contained in:
parent
e0799181d9
commit
e080bf28a7
@ -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 New Issue
Block a user