Skip to content

Commit

Permalink
Add forced full-screen check on game start
Browse files Browse the repository at this point in the history
  • Loading branch information
sergystepanov committed Mar 15, 2024
1 parent 41e128d commit b7e469e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/js/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@

const onGameRoomAvailable = () => {
// room is ready
stream.forceFullscreenMaybe();
};

const onConnectionReady = () => {
Expand Down Expand Up @@ -138,7 +139,6 @@
input.poll.disable();
gui.hide(menuScreen);
stream.toggle(true);
stream.forceFullscreenMaybe();
gui.show(keyButtons[KEY.SAVE]);
gui.show(keyButtons[KEY.LOAD]);
// end clear
Expand Down

0 comments on commit b7e469e

Please sign in to comment.