From dcf6e5da463497b6ef3eef090d7e6d149d15db45 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Tue, 8 Feb 2022 11:20:54 -0500 Subject: [PATCH] If there is an ajax error, and the error is unauthorized, then reload the page. --- web/js/MonitorStream.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/js/MonitorStream.js b/web/js/MonitorStream.js index 86b9b97e0..5ce9d67a8 100644 --- a/web/js/MonitorStream.js +++ b/web/js/MonitorStream.js @@ -274,6 +274,9 @@ function MonitorStream(monitorData) { // Assuming temporary problem, retry in a bit. setTimeout(this.streamCmdQuery.bind(this), 1000*statusRefreshTimeout); logAjaxFail(jqxhr, textStatus, error); + if (textStatus == 'Unauthorized') { + window.location.reload(); + } }; this.getStreamCmdResponse = function(respObj, respText) {