From 09ea7d4b8432586b7daf9397a4e80348e3c3fc27 Mon Sep 17 00:00:00 2001 From: "R. Aidan Campbell" Date: Mon, 9 May 2016 13:20:08 -0400 Subject: [PATCH] Clean the loading bar if the stream fails --- static/js/messages.js | 1 + 1 file changed, 1 insertion(+) diff --git a/static/js/messages.js b/static/js/messages.js index e872747..f928cff 100644 --- a/static/js/messages.js +++ b/static/js/messages.js @@ -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();