Skip to content

Commit

Permalink
handle failure gracefully in case timeline http fails (interceptor wa…
Browse files Browse the repository at this point in the history
…s fixed)
  • Loading branch information
pliablepixels committed May 31, 2019
1 parent 3429248 commit fe7c8c7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='utf-8'?>
<widget android-packageName="com.pliablepixels.zmninja_pro" id="com.pliablepixels.zmninja_pro" ios-CFBundleIdentifier="com.pliablepixels.zmninja-pro" version="1.3.058" xmlns="http://www.w3.org/ns/widgets" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<widget android-packageName="com.pliablepixels.zmninja_pro" id="com.pliablepixels.zmninja_pro" ios-CFBundleIdentifier="com.pliablepixels.zmninja-pro" version="1.3.060" xmlns="http://www.w3.org/ns/widgets" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>zmNinja</name>
<description>
High performance ZoneMinder client
Expand Down
7 changes: 6 additions & 1 deletion www/js/TimelineCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -1019,6 +1019,10 @@ angular.module('zmApp.controllers').controller('zmApp.TimelineCtrl', ['$ionicPla

}

function noop() {

};

//-------------------------------------------------
// This function draws the graph
//-------------------------------------------------
Expand Down Expand Up @@ -1364,7 +1368,8 @@ angular.module('zmApp.controllers').controller('zmApp.TimelineCtrl', ['$ionicPla

}

); // get Events
)
.catch (noop); // get Events
});
}

Expand Down

0 comments on commit fe7c8c7

Please sign in to comment.