summaryrefslogtreecommitdiff
path: root/www/js/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js/app.js')
-rw-r--r--www/js/app.js9
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