diff --git a/client/src/components/home/JoinGame.tsx b/client/src/components/home/JoinGame.tsx index eb8e72a..4db4607 100644 --- a/client/src/components/home/JoinGame.tsx +++ b/client/src/components/home/JoinGame.tsx @@ -23,8 +23,11 @@ export default function JoinGame() { if (!code) return; 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]; }