File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments