remove parameters from join link

This commit is contained in:
AlecM33
2023-08-22 22:14:04 -04:00
parent ce121d35a6
commit 39aa9932bf
5 changed files with 10 additions and 26 deletions

View File

@@ -9,10 +9,6 @@ const join = () => {
const accessCode = splitUrl[1];
if (/^[a-zA-Z0-9]+$/.test(accessCode) && accessCode.length === PRIMITIVES.ACCESS_CODE_LENGTH) {
document.getElementById('game-code').innerText = accessCode;
document.getElementById('game-time').innerText =
decodeURIComponent((new URL(document.location)).searchParams.get('timer'));
document.getElementById('game-player-count').innerText =
decodeURIComponent((new URL(document.location)).searchParams.get('playerCount')) + ' Players';
const form = document.getElementById('join-game-form');
form.onsubmit = joinHandler;
} else {