diff --git a/client/src/components/home/JoinGame.tsx b/client/src/components/home/JoinGame.tsx index eb8e72a..77090ad 100644 --- a/client/src/components/home/JoinGame.tsx +++ b/client/src/components/home/JoinGame.tsx @@ -24,7 +24,10 @@ export default function JoinGame() { setButtonLoading(true); - if (code.startsWith("http") || code.startsWith("ches.su")) { + if (code.startsWith("ches.su")) { + code = "http://" + code; + } + if (code.startsWith("http")) { code = new URL(code).pathname.split("/")[1]; }