If there is an ajax error, and the error is unauthorized, then reload the page.

This commit is contained in:
Isaac Connor committed 2022-02-08 11:20:54 -05:00
1 parent 38c9ac1521
commit dcf6e5da46
1 file changed
+3
+3
View File
@@ -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) {