chore: allow state to be visible globally

This commit is contained in:
Paul Makles 2021-12-26 23:04:14 +00:00
parent f0c2829c58
commit 336e2ddeb7

View file

@ -234,6 +234,7 @@ var state: State;
export async function hydrateState() { export async function hydrateState() {
state = new State(); state = new State();
(window as any).state = state;
await state.hydrate(); await state.hydrate();
} }