Skip to content

Commit

Permalink
fixed embedHref
Browse files Browse the repository at this point in the history
  • Loading branch information
bluedeepart committed Nov 20, 2024
1 parent ddcd8b9 commit c711a0f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,8 @@ function addPageSchema() {

const h1 = document.querySelector('main h1');
const schemaTitle = h1 ? h1.textContent : getMetadata('og:title');
const vidyardLink = document.querySelector('a[href*="vidyard.com"], a[href*="vids.moleculardevices.com"]').href;
const vidyardId = vidyardLink.split('/').pop();

const heroImage = document.querySelector('.hero img');
const resourcesImage = getMetadata('thumbnail') || getMetadata('og:image') || moleculardevicesLogoURL;
Expand All @@ -473,7 +475,7 @@ function addPageSchema() {
const eventAddress = getMetadata('event-address');
const publicationDate = getMetadata('publication-date');
const canonicalHref = document.querySelector("link[rel='canonical']").href;
const embedHref = document.querySelector("link[rel='prefetch']").href;
const embedHref = `https://play.vidyard.com/${vidyardId}?disable_popouts=1&v=4.3.15&autoplay=1&type=lightbox`;

const schema = document.createElement('script');
schema.setAttribute('type', 'application/ld+json');
Expand Down

0 comments on commit c711a0f

Please sign in to comment.