mirror of
https://github.com/revoltchat/revite.git
synced 2024-12-26 15:32:11 -05:00
chore: allow state to be visible globally
This commit is contained in:
parent
f0c2829c58
commit
336e2ddeb7
1 changed files with 1 additions and 0 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue