mirror of
https://github.com/moonlight-stream/moonlight-chrome.git
synced 2025-08-17 16:46:31 +00:00
Clean the loading bar if the stream fails
This commit is contained in:
parent
8f0b911031
commit
09ea7d4b84
@ -21,6 +21,7 @@ function handleMessage(msg) {
|
|||||||
} else { // else, it's just info, or an event
|
} else { // else, it's just info, or an event
|
||||||
console.log(msg.data);
|
console.log(msg.data);
|
||||||
if(msg.data === 'streamTerminated') { // if it's a recognized event, notify the appropriate function
|
if(msg.data === 'streamTerminated') { // if it's a recognized event, notify the appropriate function
|
||||||
|
$('#loadingSpinner').css('display', 'none'); // This is a fallback for RTSP handshake failing, which immediately terminates the stream.
|
||||||
api.refreshServerInfo().then(function (ret) {
|
api.refreshServerInfo().then(function (ret) {
|
||||||
showAppsMode();
|
showAppsMode();
|
||||||
chrome.app.window.current().restore();
|
chrome.app.window.current().restore();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user