Skip to content

Commit

Permalink
chore: fix lint errors in wistia-embed
Browse files Browse the repository at this point in the history
  • Loading branch information
camwiegert committed Jan 22, 2019
1 parent 9fb45b8 commit 4d1048c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/components/wistia-video/wistia-video.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ export class WistiaVideo {
@Prop() id: string;

componentDidLoad() {
if (!document.getElementById("wistia_script")) {
let wistiaScript = document.createElement("script");
wistiaScript.id = "wistia_script";
wistiaScript.type = "text/javascript";
wistiaScript.src = "https://fast.wistia.com/assets/external/E-v1.js";
if (!document.getElementById('wistia_script')) {
const wistiaScript = document.createElement('script');
wistiaScript.id = 'wistia_script';
wistiaScript.type = 'text/javascript';
wistiaScript.src = 'https://fast.wistia.com/assets/external/E-v1.js';
wistiaScript.async = true;
document.body.appendChild(wistiaScript);
}
Expand Down

0 comments on commit 4d1048c

Please sign in to comment.