forked from abner/for-legacy-web
chore: allow state to be visible globally
This commit is contained in:
@@ -234,6 +234,7 @@ var state: State;
|
||||
|
||||
export async function hydrateState() {
|
||||
state = new State();
|
||||
(window as any).state = state;
|
||||
await state.hydrate();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user