diff options
| author | Arjun Roychowdhury <pliablepixels@gmail.com> | 2015-10-30 18:12:39 -0400 |
|---|---|---|
| committer | Arjun Roychowdhury <pliablepixels@gmail.com> | 2015-10-30 18:12:39 -0400 |
| commit | 6f9e83a73b05f60c4d82ea2dc9bc72478b502301 (patch) | |
| tree | 62f15645aa3437553f16b5333d8ecef6f9801a35 /www/js/app.js | |
| parent | 5b64d30ee962e7ce6d43c5c752739fd19c6ba77d (diff) | |
#59 - initial patches
Diffstat (limited to 'www/js/app.js')
| -rw-r--r-- | www/js/app.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/www/js/app.js b/www/js/app.js index 21fd5c41..0f65d43b 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -479,9 +479,18 @@ angular.module('zmApp', [ $rootScope.tappedNotification = 0; //var eventsToDisplay=[]; $rootScope.alarmCount="0"; + $rootScope.platformOS="unknown"; //console.log ("HERE"); + + if ($ionicPlatform.is('ios')) + $rootScope.platformOS = "ios"; + + + if ($ionicPlatform.is('android')) + $rootScope.platformOS = "android"; + ZMDataModel.init(); EventServer.init(); // for making sure we canuse $state.go with ng-click |
