diff --git a/src/ConferenceCallManagerHooks.js b/src/ConferenceCallManagerHooks.js index e7ff576..2ac9dd2 100644 --- a/src/ConferenceCallManagerHooks.js +++ b/src/ConferenceCallManagerHooks.js @@ -103,6 +103,14 @@ export function useConferenceCallManager(homeserverUrl) { }); }, []); + useEffect(() => { + window.confManager = manager; + + return () => { + window.confManager = undefined; + }; + }, [manager]); + return { loading, authenticated, manager, error, login, register }; }