feat: store product image URL in window object for improved accessibility in image handling

This commit is contained in:
sebseb7
2025-07-23 08:35:08 +02:00
parent 61faf654bc
commit d16e979771
3 changed files with 6 additions and 4 deletions

View File

@@ -48,6 +48,11 @@ const generateProductMetaTags = (product, baseUrl, config) => {
<!-- Additional Meta Tags -->
<meta name="robots" content="index, follow">
<link rel="canonical" href="${productUrl}">
<!-- Store image URL in window object -->
<script>
window.productImageUrl = "${imageUrl}";
</script>
`;
};