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

@@ -39,6 +39,7 @@ class Images extends Component {
for(const bildId of bildIds){
if(bildId == mainPicId){
if(window.productImageUrl) continue;
if(window.largePicCache[bildId]){
pics.push(window.largePicCache[bildId]);

View File

@@ -5,8 +5,6 @@ import Images from './Images.js';
const ProductImage = ({
product,
socket,
socketB,
fullscreenOpen,
onOpenFullscreen,
onCloseFullscreen
@@ -44,8 +42,6 @@ const ProductImage = ({
)}
{product.pictureList && (
<Images
socket={socket}
socketB={socketB}
pictureList={product.pictureList}
productName={product.name}
fullscreenOpen={fullscreenOpen}