Fix Wistia access to use window.

This commit is contained in:
Evelyn Eastmond committed 2019-05-28 20:34:14 -04:00
1 parent a63385343a
commit e17dc90983
1 file changed
+1 -2
+1 -2
View File
@@ -98,8 +98,7 @@ class VideoStep extends React.Component {
document.body.appendChild(script2);
}
componentDidUpdate () {
// eslint-disable-next-line no-undef
const video = Wistia.api(`${this.props.video}`);
const video = window.Wistia.api(`${this.props.video}`);
if (this.props.expanded) {
video.play();
} else {