Remove auto-play on expansion.

This commit is contained in:
Evelyn Eastmond committed 2019-05-28 20:34:14 -04:00
1 parent e17dc90983
commit 376f5626a4
1 file changed
+1 -3
+1 -3
View File
@@ -99,9 +99,7 @@ class VideoStep extends React.Component {
}
componentDidUpdate () {
const video = window.Wistia.api(`${this.props.video}`);
if (this.props.expanded) {
video.play();
} else {
if (!this.props.expanded) {
video.pause();
}
}