summaryrefslogtreecommitdiff
path: root/www/js/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js/app.js')
-rwxr-xr-xwww/js/app.js16
1 files changed, 13 insertions, 3 deletions
diff --git a/www/js/app.js b/www/js/app.js
index 34e9343e..c859efc3 100755
--- a/www/js/app.js
+++ b/www/js/app.js
@@ -1430,12 +1430,14 @@ angular.module('zmApp', [
NVRDataModel.log("You are running on " + $rootScope.platformOS);
- if (window.cordova)
- MobileAccessibility.getTextZoom(getTextZoomCallback);
+ console.log ("Mobile acc");
+ if (window.cordova)
+ MobileAccessibility.getTextZoom(getTextZoomCallback);
// $rootScope.lastState = "events";
//$rootScope.lastStateParam = "0";
+console.log ("localforage config");
localforage.config({
name: zm.dbName
@@ -1462,6 +1464,7 @@ angular.module('zmApp', [
}
+console.log ("forage driver");
localforage.defineDriver(window.cordovaSQLiteDriver).then(function () {
return localforage.setDriver(
// Try setting cordovaSQLiteDriver if available,
@@ -1555,6 +1558,7 @@ angular.module('zmApp', [
});
function continueInitialInit() {
+ console.log ("continueinit");
var pixelRatio = window.devicePixelRatio || 1;
$rootScope.devWidth = ((window.innerWidth > 0) ? window.innerWidth : screen.width);
$rootScope.devHeight = ((window.innerHeight > 0) ? window.innerHeight : screen.height);
@@ -1564,10 +1568,12 @@ angular.module('zmApp', [
$rootScope.$stateParams = $stateParams;
if (window.cordova && window.cordova.plugins.Keyboard) {
- cordova.plugins.Keyboard.disableScroll(true);
+ console.log ("no keyboard");
+ // cordova.plugins.Keyboard.disableScroll(true);
}
if (window.StatusBar) {
// org.apache.cordova.statusbar required
+ console.log ("statusbar");
NVRDataModel.log("Updating statusbar");
StatusBar.styleDefault();
//StatusBar.overlaysWebView(false);
@@ -1575,10 +1581,12 @@ angular.module('zmApp', [
}
if (window.cordova) {
+ console.log ("Hiding splash");
$cordovaSplashscreen.hide();
+ console.log ("app version");
cordova.getAppVersion.getVersionNumber().then(function (version) {
appVersion = version;
NVRDataModel.log("App Version: " + appVersion);
@@ -1586,8 +1594,10 @@ angular.module('zmApp', [
});
}
+ console.log ("file logger");
$fileLogger.checkFile().then(function (resp) {
if (parseInt(resp.size) > zm.logFileMaxSize) {
+ console.log ("inside file logger");
$fileLogger.deleteLogfile().then(function () {
NVRDataModel.log("Deleting old log file as it exceeds " + zm.logFileMaxSize + " bytes");