diff --git a/js/actionCreators.js b/js/actionCreators.js index 50dc0e65..821a89ef 100644 --- a/js/actionCreators.js +++ b/js/actionCreators.js @@ -243,11 +243,6 @@ export function fetchMediaDuration(url, id) { audio.addEventListener("durationchange", durationChange); audio.addEventListener("error", () => { // TODO: Should we update the state to indicate that we don't know the length? - /* Disabled, because people might drag in bogus local files. - Raven.captureMessage( - `Error getting duration of ${url}: ${audio.error.message}` - ); - */ }); audio.src = url; }; diff --git a/js/media/elementSource.js b/js/media/elementSource.js index 05110bea..61df4398 100644 --- a/js/media/elementSource.js +++ b/js/media/elementSource.js @@ -1,5 +1,3 @@ -import Raven from "raven-js"; - const STATUS = { PLAYING: "PLAYING", STOPPED: "STOPPED", @@ -53,11 +51,7 @@ export default class ElementSource { }); this._audio.addEventListener("error", () => { - Raven.captureMessage( - `AudioElement Error ${this._audio.error.code}; details: ${ - this._audio.error.messagee - }` - ); + // }); this._source = this._context.createMediaElementSource(this._audio); @@ -86,7 +80,7 @@ export default class ElementSource { try { await this._audio.play(); } catch (err) { - Raven.captureException(err); + // } this._setStatus(STATUS.PLAYING); }