From faed9d0918f1ab4753c72674fbe0097b3a6c7c82 Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Sun, 23 Oct 2016 19:57:35 -0400 Subject: running as webserver Former-commit-id: f72ca891d089981217705a2baf5775a619c433d2 --- www/js/EventCtrl.js | 2 +- www/js/app.js | 2 +- 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({ -- cgit v1.2.3