Expose confManager global

This commit is contained in:
Robert Long 2021-08-02 11:16:14 -07:00
parent f8cdd3fb9e
commit a231154bd7

View file

@ -103,6 +103,14 @@ export function useConferenceCallManager(homeserverUrl) {
});
}, []);
useEffect(() => {
window.confManager = manager;
return () => {
window.confManager = undefined;
};
}, [manager]);
return { loading, authenticated, manager, error, login, register };
}