summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
Diffstat (limited to 'www')
-rw-r--r--www/js/EventCtrl.js2
-rw-r--r--www/js/app.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/www/js/EventCtrl.js b/www/js/EventCtrl.js
index f5719226..7b471457 100644
--- a/www/js/EventCtrl.js
+++ b/www/js/EventCtrl.js
@@ -101,7 +101,7 @@ angular.module('zmApp.controllers')
// note that there may be a delay as its a callback - so might involve
// a UI jiggle
- if ($rootScope.platformOS != "desktop")
+ if (window.cordova)
MobileAccessibility.getTextZoom(getTextZoomCallback);
eventsListDetailsHeight = parseInt(zm.eventsListDetailsHeight * $rootScope.textScaleFactor);
diff --git a/www/js/app.js b/www/js/app.js
index c1ca0499..41082d49 100644
--- a/www/js/app.js
+++ b/www/js/app.js
@@ -1228,7 +1228,7 @@ angular.module('zmApp', [
NVRDataModel.log("You are running on " + $rootScope.platformOS);
- if ($rootScope.platformOS != "desktop")
+ if (window.cordova)
MobileAccessibility.getTextZoom(getTextZoomCallback);
localforage.config({