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

This commit is contained in:
Isaac Connor 2022-02-08 11:20:54 -05:00
parent 38c9ac1521
commit dcf6e5da46
1 changed files with 3 additions and 0 deletions

View File

@ -274,6 +274,9 @@ function MonitorStream(monitorData) {
// Assuming temporary problem, retry in a bit. // Assuming temporary problem, retry in a bit.
setTimeout(this.streamCmdQuery.bind(this), 1000*statusRefreshTimeout); setTimeout(this.streamCmdQuery.bind(this), 1000*statusRefreshTimeout);
logAjaxFail(jqxhr, textStatus, error); logAjaxFail(jqxhr, textStatus, error);
if (textStatus == 'Unauthorized') {
window.location.reload();
}
}; };
this.getStreamCmdResponse = function(respObj, respText) { this.getStreamCmdResponse = function(respObj, respText) {