Skip to content

Commit

Permalink
Render preload players even when url is null
Browse files Browse the repository at this point in the history
  • Loading branch information
cookpete committed Sep 11, 2017
1 parent 9673b2a commit 1531190
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/ReactPlayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ export default class ReactPlayer extends Component {
this.wrapper = wrapper
}
renderPreloadPlayers (url) {
if (!url) return null
// Render additional players if preload config is set
const preloadPlayers = []
if (!YouTube.canPlay(url) && this.config.youtube.preload) {
Expand Down

0 comments on commit 1531190

Please sign in to comment.