Fix Wistia access to use window.
This commit is contained in:
1 parent
a63385343a
commit
e17dc90983
1 file changed
+1
-2
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user