BeePong / 42_transcendence

This group project is about creating a website for the mighty Pong contest!🏓
2 stars 4 forks source link

Bugfix/103 avoid unexpected error message in frontend #114

Closed wengcychan closed 2 months ago

wengcychan commented 2 months ago

@pixelsnow @liocle @djames9

I added the check for getElement so that when the element doesn't exist yet (e.g. countdown), the browser won't attempt to set it.

I also fix the page in page problem when going directly to https://localhost:8443/tournament/1/solo_game/ or https://localhost:8443/tournament/1/lobby/ when the user is not logged in.

I also clean up some unused info, functions and console.log.

Close #103