Skip to content

Commit

Permalink
Update shop.js
Browse files Browse the repository at this point in the history
  • Loading branch information
monster-site authored Oct 21, 2024
1 parent 5165e63 commit 6f4b788
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions shop/shop.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 6f4b788

Please sign in to comment.