Skip to content

Commit

Permalink
Merge pull request #858 from frankemax/855-url
Browse files Browse the repository at this point in the history
fix(whiteboard): URL not null
  • Loading branch information
frankemax authored Jul 4, 2024
2 parents 6527248 + 6959d90 commit 8952d00
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/screens/whiteboard-screen/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,12 @@ const WhiteboardScreen = () => {
useEffect(() => {
// don't resize screen when keyboard shows
setAdjustPan();
if (!joinUrl) {
return;
}

const url = new URL(joinUrl);
const getJoinUrlWithEnforceLayout = `https://${url.host}/bigbluebutton/api/getJoinUrl?sessionToken=${url.searchParams.get('sessionToken')}&enforceLayout=presentationOnly`;
const getJoinUrlWithEnforceLayout = `https://${url.host}/bigbluebutton/api/getJoinUrl?sessionToken=${url.searchParams?.get('sessionToken')}&enforceLayout=presentationOnly`;

axios.get(getJoinUrlWithEnforceLayout).then((response) => {
const apiResponse = response.data.response;
Expand Down

0 comments on commit 8952d00

Please sign in to comment.