mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-19 09:33:47 +00:00
Exclude Raven from the UMD bundle
This commit is contained in:
parent
87c833f4be
commit
e52ddd63c4
2 changed files with 2 additions and 13 deletions
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue