Comented duplicated componentWillReceiveProps function.

This commit is contained in:
Daniel Dominguez 2018-05-31 23:21:03 -03:00
parent 7d2617e9dc
commit bc262481a1

View file

@ -22,10 +22,10 @@ class VideoPlayer extends React.PureComponent {
this.toggleFullScreenVideo = this.toggleFullScreen.bind(this);
}
componentWillReceiveProps(nextProps) {
const el = this.refs.media.children[0];
if (!this.props.paused && nextProps.paused && !el.paused) el.pause();
}
// componentWillReceiveProps(nextProps) {
// const el = this.refs.media.children[0];
// if (!this.props.paused && nextProps.paused && !el.paused) el.pause();
// }
componentDidMount() {
const container = this.media;