Skip to content

Commit

Permalink
Fix bug with multiple grids
Browse files Browse the repository at this point in the history
  • Loading branch information
ezemtsov committed Jul 3, 2019
1 parent 4bc2bc8 commit ae0841c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ class Game {
let data = ctrlMsg.data;
switch (ctrlMsg.message) {
case 'Connected':
drawGrid(game.size, (r, c) => game.selectCell(r, c));
drawSnackbar(data.Player + ' connected');
game.rememberPlayer(data.Player);
break;
Expand Down Expand Up @@ -297,6 +296,7 @@ function initInterface(game) {
newGameButton.addEventListener('click', function() {
let name = nameInput.value;
game.connect(name);
drawGrid(game.size, (r, c) => game.selectCell(r, c));
dialog.close();
});

Expand Down

0 comments on commit ae0841c

Please sign in to comment.