diff options
Diffstat (limited to 'www/js/DataModel.js')
| -rw-r--r-- | www/js/DataModel.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/www/js/DataModel.js b/www/js/DataModel.js index a11a0998..b1d5b578 100644 --- a/www/js/DataModel.js +++ b/www/js/DataModel.js @@ -63,6 +63,7 @@ angular.module('zmApp.controllers') 'montageSize':'3', 'useNphZms':true, 'packMontage':true, + 'exitOnSleep':true, }; @@ -242,6 +243,13 @@ angular.module('zmApp.controllers') loginData.packMontage = true; } + + if (typeof loginData.exitOnSleep == 'undefined') + { + zmDebug ("exitOnSleep does not exist. Setting to true"); + loginData.exitOnSleep = true; + } + zmLog ("DataModel init recovered this loginData as " + JSON.stringify(loginData)); } else |
