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:
Scott Lamb 2018-11-28 15:10:45 -08:00
parent 7a81d36562
commit b2bdccb507

View File

@ -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