Skip to content

Commit

Permalink
Fix last frame from previous session displaying when starting a new one
Browse files Browse the repository at this point in the history
  • Loading branch information
henryfa2 committed Jan 15, 2024
1 parent 82b6349 commit b222d51
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wasm/platform/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -874,6 +874,8 @@ function playGameMode() {
$("#main-content").addClass("fullscreen");
$("#listener").addClass("fullscreen");

$("#nacl_module")[0].style.opacity = 0.0; //FHEN

if (runningOnChrome()) {
chrome.app.window.current().fullscreen();
}
Expand Down
1 change: 1 addition & 0 deletions wasm/platform/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ function handleMessage(msg) {
snackbarLogLong(msg.replace('DialogMsg: ', ''));
} else if (msg === 'displayVideo') {
$("#listener").addClass("fullscreen");
$("#nacl_module")[0].style.opacity = 1.0; //FHEN
} else if (msg.indexOf('controllerRumble: ') === 0) {
const eventData = msg.split(' ')[1].split(',');
const gamepadIdx = parseInt(eventData[0]);
Expand Down

0 comments on commit b222d51

Please sign in to comment.