Clean the loading bar if the stream fails

This commit is contained in:
R. Aidan Campbell 2016-05-09 13:20:08 -04:00
parent 8f0b911031
commit 09ea7d4b84

View File

@ -21,6 +21,7 @@ function handleMessage(msg) {
} else { // else, it's just info, or an event
console.log(msg.data);
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) {
showAppsMode();
chrome.app.window.current().restore();