From 62a0fbf896b92e1490d8d2b476ad8a2540fb27b1 Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Thu, 16 Apr 2026 23:17:49 -0700 Subject: show sharing url when creating player and typing --- src/app/create/page.tsx | 4 ++-- src/app/typing/page.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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 ( diff --git a/src/app/typing/page.tsx b/src/app/typing/page.tsx index 3037c32..9e238e6 100644 --- a/src/app/typing/page.tsx +++ b/src/app/typing/page.tsx @@ -138,7 +138,7 @@ export default function TypingPage() { No results found. ) : ( filtered.map((item) => ( - + {item.thumbnail ? ( -- cgit v1.2.3