mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-10-26 08:18:28 -04:00
If there is an ajax error, and the error is unauthorized, then reload the page.
This commit is contained in:
1 parent
38c9ac1521
commit
dcf6e5da46
1 file changed
+3
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user