From e52ddd63c4fc9bebe28064ba0c885f1bdcafc4d3 Mon Sep 17 00:00:00 2001 From: Jordan Eldredge Date: Mon, 19 Feb 2018 20:18:55 -0800 Subject: [PATCH] Exclude Raven from the UMD bundle --- js/actionCreators.js | 5 ----- js/media/elementSource.js | 10 ++-------- 2 files changed, 2 insertions(+), 13 deletions(-) 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); }