mirror of
https://github.com/moonlight-stream/moonlight-chrome.git
synced 2026-04-23 08:27:09 +00:00
Add a progress message with the indeterminate loading bar
This commit is contained in:
@@ -293,6 +293,7 @@ function startSelectedGame() {
|
||||
var rikey = '00000000000000000000000000000000';
|
||||
var rikeyid = 0;
|
||||
|
||||
$('#loadingMessage').text('Starting ' + $("#selectGame option:selected").text() + '...');
|
||||
playGameMode();
|
||||
|
||||
if(api.currentGame == appID) // if user wants to launch the already-running app, then we resume it.
|
||||
|
||||
@@ -28,6 +28,8 @@ function handleMessage(msg) {
|
||||
});
|
||||
} else if(msg.data === 'Connection Established') {
|
||||
$('#loadingSpinner').css('display', 'none');
|
||||
} else if(msg.data.indexOf('ProgressMsg: ') === 0) {
|
||||
$('#loadingMessage').text(msg.data.replace('ProgressMsg: ', ''));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user