From a231154bd7964f5d7df28a3a45adfcedc0df5b57 Mon Sep 17 00:00:00 2001 From: Robert Long Date: Mon, 2 Aug 2021 11:16:14 -0700 Subject: [PATCH] Expose confManager global --- src/ConferenceCallManagerHooks.js | 8 ++++++++ 1 file changed, 8 insertions(+) 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 }; }