Skip to content

Commit

Permalink
Fix lobby example (#351)
Browse files Browse the repository at this point in the history
* examples: fix URL's of servers in lobby example

* lobby: fix single player mode
  • Loading branch information
francoijs authored and nicolodavis committed Jan 28, 2019
1 parent a285fbf commit d7d6b44
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions examples/react-web/src/lobby/lobby.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ const LobbyView = () => (
<h1>Lobby</h1>

<Lobby
gameServer="localhost:8000"
lobbyServer="localhost:8001"
gameServer="http://localhost:8000"
lobbyServer="http://localhost:8001"
gameComponents={importedGames}
/>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/lobby/react.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ class Lobby extends React.Component {
return;
}

let multiplayer = null;
let multiplayer = undefined;
if (gameOpts.numPlayers > 1) {
if (this.props.gameServer) {
multiplayer = { server: this.props.gameServer };
Expand Down

0 comments on commit d7d6b44

Please sign in to comment.