Skip to content

Commit

Permalink
Ignore uncaught errors from ChromeVox
Browse files Browse the repository at this point in the history
ChromeVox (screenreader) always throws an error as of Chrome 73.
Screen these out since they are unrelated to our application and we
can't control them.

Closes #1862

Change-Id: Ib0c9e913489c0945d652cd37d029160411149715
  • Loading branch information
joeyparrish committed Apr 10, 2019
1 parent 00442a9 commit 144ecb2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions demo/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,11 @@ shakaDemo.init = function() {

// Display uncaught exceptions.
window.addEventListener('error', function(event) {
// Exception to the exceptions we catch: ChromeVox (screenreader) always
// throws an error as of Chrome 73. Screen these out since they are
// unrelated to our application and we can't control them.
if (event.message.includes('cvox.ApiImplementation')) return;

shakaDemo.onError_(/** @type {!shaka.util.Error} */ (event.error));
});

Expand Down

0 comments on commit 144ecb2

Please sign in to comment.