Skip to content
This repository has been archived by the owner on Jun 2, 2020. It is now read-only.

Commit

Permalink
MOBILE-641 Disabling some type of errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jleyva committed Aug 6, 2014
1 parent 7d292b8 commit f7bc110
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
window.onerror = function(msg, url, lineNumber) {
if (typeof(msg) === "string") {
var error = msg + "\n\nFile: " + url + "\nLine: " + lineNumber;
if (url.indexOf("cordova.js") == -1) {
// Ommit cordova and 3rd party libs errors.
if (url.indexOf("cordova.js") == -1 && url.indexOf("externallib") == -1) {
window.alert(error);
}
} else {
Expand Down

0 comments on commit f7bc110

Please sign in to comment.