mirror of
https://github.com/moonlight-stream/moonlight-chrome.git
synced 2025-08-17 00:26:56 +00:00
Fix last frame from previous session displaying when starting a new one
This commit is contained in:
parent
11de8f49ff
commit
13c22ea16f
@ -722,6 +722,9 @@ function playGameMode() {
|
||||
$("#main-content").addClass("fullscreen");
|
||||
$("#listener").addClass("fullscreen");
|
||||
|
||||
// Hide the NaCl module until the first frame is rendered
|
||||
$("#nacl_module")[0].style.opacity = 0.0
|
||||
|
||||
fullscreenNaclModule();
|
||||
$('#loadingSpinner').css('display', 'inline-block');
|
||||
}
|
||||
|
@ -80,7 +80,8 @@ function handleMessage(msg) {
|
||||
// FIXME: Really use a dialog
|
||||
snackbarLogLong(msg.data.replace('DialogMsg: ', ''));
|
||||
} else if (msg.data === 'displayVideo') {
|
||||
$("#listener").addClass("fullscreen");
|
||||
// Show the video stream now
|
||||
$("#nacl_module")[0].style.opacity = 1.0;
|
||||
} else if (msg.data.indexOf('controllerRumble: ' ) === 0) {
|
||||
const eventData = msg.data.split( ' ' )[1].split(',');
|
||||
const gamepadIdx = parseInt(eventData[0]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user