summaryrefslogtreecommitdiff
path: root/www/js/EventCtrl.js
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2016-09-28 08:42:09 -0400
committerPliable Pixels <pliablepixels@gmail.com>2016-09-28 08:42:09 -0400
commitef7709d30ac5eb41dec7209c34c41d9b496003eb (patch)
tree9b0415478983513659c32a584f89c364faf4e06a /www/js/EventCtrl.js
parent89366c5e2de9aa76055106b8883894d779fddf9b (diff)
dont call mobile accessory if on desktop
Former-commit-id: 331a307d23a208b5fadb1b29c296c35802e6aab5
Diffstat (limited to 'www/js/EventCtrl.js')
-rw-r--r--www/js/EventCtrl.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/www/js/EventCtrl.js b/www/js/EventCtrl.js
index 53511651..cbfc172e 100644
--- a/www/js/EventCtrl.js
+++ b/www/js/EventCtrl.js
@@ -88,7 +88,9 @@ angular.module('zmApp.controllers')
// collection repeat, so lets re-get the text size if it has changed
// note that there may be a delay as its a callback - so might involve
// a UI jiggle
- MobileAccessibility.getTextZoom(getTextZoomCallback);
+
+ if ($rootScope.platformOS != "desktop")
+ MobileAccessibility.getTextZoom(getTextZoomCallback);
eventsListDetailsHeight = parseInt(zm.eventsListDetailsHeight * $rootScope.textScaleFactor);
eventsListScrubHeight = parseInt(zm.eventsListScrubHeight * $rootScope.textScaleFactor);