From 144ecb2e99282f519e71ed00997e4d516556a041 Mon Sep 17 00:00:00 2001 From: Joey Parrish Date: Wed, 10 Apr 2019 10:32:02 -0700 Subject: [PATCH] Ignore uncaught errors from ChromeVox 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 --- demo/main.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/demo/main.js b/demo/main.js index 4effb3da0f..acd276d4e9 100644 --- a/demo/main.js +++ b/demo/main.js @@ -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)); });