From 7bffc0e73848b6315fc8a89277f45668801a674b Mon Sep 17 00:00:00 2001 From: Arjun Roychowdhury Date: Tue, 13 Oct 2015 15:03:42 -0400 Subject: comments updated --- www/js/app.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'www/js/app.js') diff --git a/www/js/app.js b/www/js/app.js index 8ebe7801..ef999f9a 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -28,7 +28,7 @@ angular.module('zmApp', [ //----------------------------------------------- .constant('zm', { - minAppVersion: '1.28.107', + minAppVersion: '1.28.107', // if ZM is less than this, the app won't work httpTimeout: 15000, largeHttpTimeout: 60000, logFile: 'zmNinjaLog.txt', @@ -54,7 +54,7 @@ angular.module('zmApp', [ montageScaleFrequency: 300, eventsListDetailsHeight: 200.0, eventsListScrubHeight: 300, - loginScreenString: "var currentView = 'login'" // oh shit. Isn't there a better way? + loginScreenString: "var currentView = 'login'" // Isn't there a better way? }) //------------------------------------------------------------------ @@ -210,8 +210,7 @@ angular.module('zmApp', [ { // these can take time, so lets bump up timeout config.timeout = zm.largeHttpTimeout; - //ZMDataModel.zmDebug("timeoutHttpIntercept: HTTP request with long response time. Timeout set to "+config.timeout); - + } else { config.timeout = zm.httpTimeout; } @@ -565,7 +564,7 @@ angular.module('zmApp', [ console.log("Log file size is " + resp.size + " bytes"); } - ZMDataModel.zmLog ("Setting up zmNinja for push notifications"); + // ZMDataModel.zmLog ("Setting up zmNinja for push notifications"); /* $ionicPush.init({ "debug": true, @@ -714,6 +713,10 @@ angular.module('zmApp', [ .config(function ($stateProvider, $urlRouterProvider, $httpProvider, $ionicConfigProvider, $provide) { + // This is an exception interceptor so it can show up in app logs + // if they occur. I suspect digest and other errors will be useful + // for me to see + $provide.decorator("$exceptionHandler", ['$delegate','$injector', function($delegate, $injector) { return function(exception, cause) { -- cgit v1.2.3