Skip to content

Commit c4873b5

Browse files
committed
HostPanel: copy button copies full guest join URL
1 parent 7637699 commit c4873b5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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)