diff options
| author | Arjun Roychowdhury <pliablepixels@gmail.com> | 2015-10-28 13:32:23 -0400 |
|---|---|---|
| committer | Arjun Roychowdhury <pliablepixels@gmail.com> | 2015-10-28 13:32:23 -0400 |
| commit | c11d1293bedd9eda72cf77f75ad91860f3bec357 (patch) | |
| tree | 886c29f5e54bb37808dd254701e8c2907a1a1fd4 | |
| parent | 9ce2d28a9d13ed77ec21ab49d35b87acb6eaac80 (diff) | |
https://github.com/pliablepixels/zmNinja/issues/53 - added disablePush handling
| -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); |
