From e17dc90983582923e87c54a1cd50031c40015d3e Mon Sep 17 00:00:00 2001 From: Evelyn Eastmond Date: Tue, 21 May 2019 16:59:49 -0400 Subject: [PATCH] Fix Wistia access to use window. --- src/components/cards/cards.jsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/cards/cards.jsx b/src/components/cards/cards.jsx index 20b757583..a98aebb22 100644 --- a/src/components/cards/cards.jsx +++ b/src/components/cards/cards.jsx @@ -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 {