diff options
| author | pliablepixels <pliablepixels@gmail.com> | 2016-02-02 11:12:51 -0500 |
|---|---|---|
| committer | pliablepixels <pliablepixels@gmail.com> | 2016-02-02 11:12:51 -0500 |
| commit | 266189e452ca2591ef06b2038e6890f3353e703a (patch) | |
| tree | 66ed8cdd7e235629fd0005fef029b139b46eba0c /www/js/app.js | |
| parent | 1643d47c2a4e946012455f5702b92e8402bb46a2 (diff) | |
#135 - various changes and cleanup
Former-commit-id: 116d0c81481427115de9fade8f89f1e1a3ac08df
Diffstat (limited to 'www/js/app.js')
| -rw-r--r-- | www/js/app.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/www/js/app.js b/www/js/app.js index b74c3ed4..f1f23c2e 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -31,7 +31,7 @@ angular.module('zmApp', [ .constant('zm', { minAppVersion: '1.28.107', // if ZM is less than this, the app won't work - recommendedAppVersion: '1.30', + recommendedAppVersion: '1.29', minEventServerVersion: '0.5', alarmFlashTimer: 20000, // time to flash alarm gcmSenderId: '710936220256', @@ -921,7 +921,7 @@ angular.module('zmApp', [ document.addEventListener("resume", function () { ZMDataModel.zmLog("App is resuming from background"); var ld = ZMDataModel.getLogin(); - if ($rootScope.apnsToken && ld.isUseEventServer == "1") { + if ($rootScope.apnsToken && ld.isUseEventServer == true) { // ZMDataModel.zmDebug("sending enable push to Event Server"); // EventServer.sendMessage('push', {type:'control', enablepush:'0'}); } @@ -971,7 +971,7 @@ angular.module('zmApp', [ ionic.Platform.exitApp(); } - if ($rootScope.apnsToken && ld.isUseEventServer == "1") { + if ($rootScope.apnsToken && ld.isUseEventServer == true) { // ZMDataModel.zmDebug("sending enable push to Event Server"); //EventServer.sendMessage('push', {type:'control',enablepush:'1'}); } |
