fix intempestive ready
This commit is contained in:
parent
52e511e443
commit
cca246c751
1 changed files with 1 additions and 0 deletions
|
|
@ -342,6 +342,7 @@ function pongClient(
|
||||||
};
|
};
|
||||||
|
|
||||||
socket.on("gameUpdate", (state: GameUpdate) => {
|
socket.on("gameUpdate", (state: GameUpdate) => {
|
||||||
|
ready.classList.add("hidden");
|
||||||
updateCurrentGame(state);
|
updateCurrentGame(state);
|
||||||
render(state, playBatL, playBatR, ball, playInfo);
|
render(state, playBatL, playBatR, ball, playInfo);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue