diff --git a/client/src/components/ChatWindow/index.css b/client/src/components/ChatWindow/index.css index b7e6439..37127a5 100644 --- a/client/src/components/ChatWindow/index.css +++ b/client/src/components/ChatWindow/index.css @@ -4,6 +4,10 @@ position: relative; } +.hide-chatWindow-container { + display: none !important; +} + .loading-chatWindow { background-color: #2f343d; position: absolute; diff --git a/client/src/components/ChatWindow/index.js b/client/src/components/ChatWindow/index.js index 2372d9f..68d00f3 100644 --- a/client/src/components/ChatWindow/index.js +++ b/client/src/components/ChatWindow/index.js @@ -7,7 +7,7 @@ export default function ChatWindow(props) { useEffect(() => { document.getElementsByTagName( "iframe" - )[0].src = `${rcApiDomain}${pathname}/?layout=embedded`; + )[0].src = `${rcApiDomain}${pathname}?layout=embedded`; // eslint-disable-next-line }, []); useEffect(() => { @@ -18,7 +18,12 @@ export default function ChatWindow(props) { ); }, [pathname]); return ( -
+