diff options
| author | Arjun Roychowdhury <pliablepixels@gmail.com> | 2015-10-13 15:03:42 -0400 |
|---|---|---|
| committer | Arjun Roychowdhury <pliablepixels@gmail.com> | 2015-10-13 15:03:42 -0400 |
| commit | 7bffc0e73848b6315fc8a89277f45668801a674b (patch) | |
| tree | 042f6396c617d0ce36078e48762fa49c3bcc9cec /www/js/app.js | |
| parent | bf46d01e63bf6964e89da884c83537891d2dc244 (diff) | |
comments updated
Diffstat (limited to 'www/js/app.js')
| -rw-r--r-- | www/js/app.js | 13 |
1 files changed, 8 insertions, 5 deletions
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) { |
