mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2025-01-12 23:43:22 -05:00
Javascript fix for unauthenticated case
newTimeFormat didn't handle newTimeZone not having been called well. Restore the prior behavior of having called newTimeZone(null), which was apparently good enough.
This commit is contained in:
parent
7a81d36562
commit
b2bdccb507
@ -247,11 +247,10 @@ function updateSession(session) {
|
||||
*/
|
||||
function onReceivedTopLevel(data) {
|
||||
if (data === null) {
|
||||
data = {cameras: [], session: null};
|
||||
} else {
|
||||
newTimeZone(data.timeZoneName);
|
||||
data = {cameras: [], session: null, timeZoneName: null};
|
||||
}
|
||||
|
||||
newTimeZone(data.timeZoneName);
|
||||
updateSession(data.session);
|
||||
|
||||
// Set up controls and values
|
||||
|
Loading…
Reference in New Issue
Block a user