Skip to content

Commit 15a7e68

Browse files
committed
HostPanel: copy button copies full guest join URL
1 parent fd63ce3 commit 15a7e68

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/components/HostPanel.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ const HostPanel: React.FC<HostPanelProps> = ({ roomId, guestCount }) => {
99
if (!roomId) return null;
1010

1111
const copyRoomId = () => {
12-
navigator.clipboard.writeText(roomId);
12+
const url = `${window.location.origin}/?mode=join&room=${roomId}`;
13+
navigator.clipboard.writeText(url);
1314
};
1415

1516
return (

0 commit comments

Comments
 (0)