diff options
Diffstat (limited to 'www')
| -rw-r--r-- | www/js/DataModel.js | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/www/js/DataModel.js b/www/js/DataModel.js index b8a5e53b..51105f7d 100644 --- a/www/js/DataModel.js +++ b/www/js/DataModel.js @@ -39,6 +39,7 @@ angular.module('zmApp.controllers') 'keepAwake':true, // don't dim/dim during live view 'isUseAuth':true, // true if user wants ZM auth 'isUseEventServer':false, // true if you configure the websocket event server + 'disablePush':false, // true if only websocket mode is desired 'eventServerMonitors':'', // list of monitors to notify from ES 'eventServerInterval':'', // list of intervals for all monitors 'refreshSec':"2", // timer value for frame change in sec @@ -170,6 +171,18 @@ angular.module('zmApp.controllers') } + if (window.localStorage.getItem("disablePush") != undefined) { + loginData.disablePush = + window.localStorage.getItem("disablePush"); + + + } + else + { + loginData.disablePush = "0"; + + } + if (window.localStorage.getItem("username") != undefined) { loginData.username = @@ -412,7 +425,8 @@ angular.module('zmApp.controllers') window.localStorage.setItem("isUseAuth", loginData.isUseAuth); - window.localStorage.setItem("isUseEventServer", loginData.isUseEventServer); + window.localStorage.setItem("isUseEventServer", loginData.isUseEventServer); + window.localStorage.setItem("disablePush", loginData.disablePush); console.log ("***** SETTING ISUSEAUTH TO " + loginData.isUseAuth); |
