summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2016-10-23 19:57:35 -0400
committerPliable Pixels <pliablepixels@gmail.com>2016-10-23 19:57:35 -0400
commitfaed9d0918f1ab4753c72674fbe0097b3a6c7c82 (patch)
treea5ad112dc8b16fccee0d1324b8527dbad81f6ccc
parent71af829fc4f31f424801251efb04dd36ee0156a1 (diff)
running as webserver
Former-commit-id: f72ca891d089981217705a2baf5775a619c433d2
-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({