From bc262481a1e312da278b77f68a4f19b5e78aec9a Mon Sep 17 00:00:00 2001 From: Daniel Dominguez Date: Thu, 31 May 2018 23:21:03 -0300 Subject: [PATCH] Comented duplicated componentWillReceiveProps function. --- src/renderer/component/video/internal/player.jsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/renderer/component/video/internal/player.jsx b/src/renderer/component/video/internal/player.jsx index 61da3e750..51a39fc2c 100644 --- a/src/renderer/component/video/internal/player.jsx +++ b/src/renderer/component/video/internal/player.jsx @@ -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;