Skip to content

Commit

Permalink
Pass on event including error message and code onError. Fixes cookpet…
Browse files Browse the repository at this point in the history
  • Loading branch information
pors committed Apr 13, 2016
1 parent f0d2ffb commit 6e9e5f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/players/FilePlayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default class FilePlayer extends Base {
this.player.onplay = this.onPlay
this.player.onpause = () => this.props.onPause()
this.player.onended = () => this.props.onEnded()
this.player.onerror = () => this.props.onError()
this.player.onerror = (e) => this.props.onError(e)
super.componentDidMount()
}
load (url) {
Expand Down

0 comments on commit 6e9e5f6

Please sign in to comment.