mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-05-15 10:04:37 -04:00
Handle no data in setNavBar
This commit is contained in:
@@ -426,6 +426,10 @@ if ( currentView != 'none' && currentView != 'login' ) {
|
||||
}
|
||||
|
||||
function setNavBar(data) {
|
||||
if ( !data ) {
|
||||
console.error("No data in setNavBar");
|
||||
return;
|
||||
}
|
||||
if ( data.auth ) {
|
||||
if ( data.auth != auth_hash ) {
|
||||
// Update authentication token.
|
||||
|
||||
Reference in New Issue
Block a user