Kopirovat celu URL linku na hru namiesto holeho gid v Lobby
TASKS.md: uloha presunuta z Nedokoncene do Hotovo.
This commit is contained in:
1 parent
3615fa2bb1
commit
49ac0d3e78
2 files changed
+17
-1
No files matched your search
@@ -17,7 +17,7 @@ export default function Lobby() {
|
||||
const handleLeave = () => leaveGame(navigate);
|
||||
|
||||
const handleCopyCode = () => {
|
||||
if (gid) navigator.clipboard.writeText(gid);
|
||||
if (gid) navigator.clipboard.writeText(`${window.location.origin}/lobby/${gid}`);
|
||||
};
|
||||
|
||||
return (
|
||||
|
||||
Reference in new issue
Block a user