Merge branch 'main' into auth

This commit is contained in:
Nathaniel Tampus
2023-03-22 15:43:11 +08:00
committed by GitHub

View File

@@ -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];
}