diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2020-08-22 08:52:45 -0400 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2020-08-22 08:52:45 -0400 |
| commit | 3b7d776345654d470e509f66606d41654cfed6ba (patch) | |
| tree | f90dfcebbbb5d40681079a93e2b73b77fffb1526 /www/js/EventServer.js | |
| parent | 5c4edf04b2950dc502d1e0f33346f36a110a2b30 (diff) | |
#960 when registering with ES use $rootScope.platformOS
Diffstat (limited to 'www/js/EventServer.js')
| -rw-r--r-- | www/js/EventServer.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/www/js/EventServer.js b/www/js/EventServer.js index 20642c1c..78e081c5 100644 --- a/www/js/EventServer.js +++ b/www/js/EventServer.js @@ -51,7 +51,7 @@ angular.module('zmApp.controllers') if ($rootScope.apnsToken != '') { - var plat = $ionicPlatform.is('ios') ? 'ios' : 'android'; + // var plat = $ionicPlatform.is('ios') ? 'ios' : 'android'; var ld = NVR.getLogin(); var pushstate = "enabled"; if (ld.disablePush == true) @@ -65,7 +65,7 @@ angular.module('zmApp.controllers') sendMessage("push", { type: 'token', - platform: plat, + platform: $rootScope.platformOS, token: $rootScope.apnsToken, monlist: $rootScope.monstring, intlist: $rootScope.intstring, |
