From df929e10f2ba5677833c59eaf4df30838f3eed56 Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Fri, 31 May 2019 14:20:18 -0400 Subject: handle failure gracefully in case timeline http fails (interceptor was fixed) --- config.xml | 2 +- www/js/TimelineCtrl.js | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/config.xml b/config.xml index 7fb9a5b0..dde2c48f 100644 --- a/config.xml +++ b/config.xml @@ -1,5 +1,5 @@ - + zmNinja High performance ZoneMinder client diff --git a/www/js/TimelineCtrl.js b/www/js/TimelineCtrl.js index ed240a9f..14f282b8 100644 --- a/www/js/TimelineCtrl.js +++ b/www/js/TimelineCtrl.js @@ -1019,6 +1019,10 @@ angular.module('zmApp.controllers').controller('zmApp.TimelineCtrl', ['$ionicPla } + function noop() { + + }; + //------------------------------------------------- // This function draws the graph //------------------------------------------------- @@ -1364,7 +1368,8 @@ angular.module('zmApp.controllers').controller('zmApp.TimelineCtrl', ['$ionicPla } - ); // get Events + ) + .catch (noop); // get Events }); } -- cgit v1.2.3