Expose confManager global
This commit is contained in:
parent
f8cdd3fb9e
commit
a231154bd7
1 changed files with 8 additions and 0 deletions
|
@ -103,6 +103,14 @@ export function useConferenceCallManager(homeserverUrl) {
|
||||||
});
|
});
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
window.confManager = manager;
|
||||||
|
|
||||||
|
return () => {
|
||||||
|
window.confManager = undefined;
|
||||||
|
};
|
||||||
|
}, [manager]);
|
||||||
|
|
||||||
return { loading, authenticated, manager, error, login, register };
|
return { loading, authenticated, manager, error, login, register };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue