Skip to content

Commit 32900db

Browse files
committed
remove debug
1 parent f9b4c1e commit 32900db

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/client/HostLobbyModal.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -798,6 +798,7 @@ export class HostLobbyModal extends LitElement {
798798
this.close();
799799
const config = await getServerConfigFromClient();
800800

801+
// Parse cookies for hostToken
801802
const cookies = document.cookie.split(";");
802803
let hostToken = "";
803804
for (let i = 0; i < cookies.length; i++) {
@@ -807,17 +808,14 @@ export class HostLobbyModal extends LitElement {
807808
break;
808809
}
809810
}
810-
console.log(hostToken, cookies);
811-
const j = JSON.stringify({ hostToken: hostToken });
812-
console.log(j);
813811
const response = await fetch(
814812
`${window.location.origin}/${config.workerPath(this.lobbyId)}/api/start_game/${this.lobbyId}`,
815813
{
816814
method: "POST",
817815
headers: {
818816
"Content-Type": "application/json",
819817
},
820-
body: j,
818+
body: JSON.stringify({ hostToken: hostToken }),
821819
},
822820
);
823821
document.cookie = "hostToken=;Max-Age=-1"; //delete cookie

0 commit comments

Comments
 (0)