Skip to content

Commit

Permalink
Merge pull request #3826 from mozilla/bug/invite-codes
Browse files Browse the repository at this point in the history
Fix room codes that start with 0
  • Loading branch information
johnshaughnessy authored Feb 3, 2021
2 parents 5673bcc + 9bca02e commit 2789b92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/react-components/room/InvitePopoverContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export function InvitePopoverContainer({ hub, hubChannel, scene, ...rest }) {
const url = `${shortUrl}/${hub.hub_id}`;
const embedUrl = `${location.protocol}//${location.host}${location.pathname}?embed_token=${hub.embed_token}`;
const embedText = `<iframe src="${embedUrl}" style="width: 1024px; height: 768px;" allow="microphone; camera; vr; speaker;"></iframe>`;
const code = hub.entry_code.toString();
const code = hub.entry_code.toString().padStart(6, "0");
const popoverApiRef = useRef();

// Handle clicking on the invite button while in VR.
Expand Down

0 comments on commit 2789b92

Please sign in to comment.