diff --git a/shop/shop.js b/shop/shop.js index ad31cec..ba9cf41 100644 --- a/shop/shop.js +++ b/shop/shop.js @@ -53,15 +53,15 @@ function loadMonsterDetails() { function addOpenGraphMetaTags(title, description, image) { const ogTitle = document.createElement('meta'); - ogTitle.setAttribute('property', 'og:title'); + ogTitle.setAttribute('name', 'og:title'); ogTitle.setAttribute('content', title); const ogDescription = document.createElement('meta'); - ogDescription.setAttribute('property', 'og:description'); + ogDescription.setAttribute('name', 'og:description'); ogDescription.setAttribute('content', description); const ogImage = document.createElement('meta'); - ogImage.setAttribute('property', 'og:image'); + ogImage.setAttribute('name', 'og:image'); ogImage.setAttribute('content', image); const head = document.getElementsByTagName('head')[0];