Skip to content

Commit

Permalink
Player component tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
cookpete committed May 29, 2018
1 parent cfc0e2c commit 1ac1480
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Player.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,7 @@ export default class Player extends Component {
// When seeking before player is ready, store value and seek later
if (!this.isReady && amount !== 0) {
this.seekOnPlay = amount
setTimeout(() => {
this.seekOnPlay = null
}, SEEK_ON_PLAY_EXPIRY)
setTimeout(() => { this.seekOnPlay = null }, SEEK_ON_PLAY_EXPIRY)
return
}
if (amount > 0 && amount < 1) {
Expand Down Expand Up @@ -198,6 +196,9 @@ export default class Player extends Component {
}
render () {
const Player = this.props.activePlayer
if (!Player) {
return null
}
return (
<Player
{...this.props}
Expand Down

0 comments on commit 1ac1480

Please sign in to comment.