diff options
| author | Pinapelz <yukais@pinapelz.com> | 2026-04-16 23:17:49 -0700 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2026-04-16 23:17:49 -0700 |
| commit | 62a0fbf896b92e1490d8d2b476ad8a2540fb27b1 (patch) | |
| tree | f3bc6972b9e206d5af378f1dd97529950c5bbc1c /src/app/create/page.tsx | |
| parent | 9dd318313325e0d8925e6259db48709886e143c2 (diff) | |
show sharing url when creating player and typing
Diffstat (limited to 'src/app/create/page.tsx')
| -rw-r--r-- | src/app/create/page.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/app/create/page.tsx b/src/app/create/page.tsx index dae0a52..a1bb6f9 100644 --- a/src/app/create/page.tsx +++ b/src/app/create/page.tsx @@ -103,8 +103,8 @@ export default function CreatePage() { } }; - const playerPath = mode === "typing" ? "/typing" : "/player"; - const shareUrl = code ? `${playerPath}?code=${code}` : ""; + const playerPath = mode === "typing" ? "/game" : "/player"; + const shareUrl = code ? `${window.location.origin}${playerPath}?code=${code}` : ""; return ( <Root> |
