mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-11-08 04:31:03 +00:00
chore: allow state to be visible globally
This commit is contained in:
1 parent
f0c2829c58
commit
336e2ddeb7
1 file changed
+1
@@ -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