This commit is contained in:
Tomas Dvorak
2025-05-28 13:57:31 +02:00
parent e1f5281723
commit 92fa485e4a
+6 -2
View File
@@ -1486,7 +1486,9 @@ function updateBannerPreview() {
}
// Update the banner content with the generated HTML
bannerPreviewContent.innerHTML = bannerContent;
if (bannerPreviewContent) {
bannerPreviewContent.innerHTML = bannerContent;
}
// Add event listeners for width/height changes
const imageWidthInput = document.getElementById('bannerImageWidth');
@@ -1502,7 +1504,9 @@ function updateBannerPreview() {
}
// Make sure the preview is visible
bannerPreview.style.visibility = 'visible';
if (bannerPreview) {
bannerPreview.style.visibility = 'visible';
}
}
// Apply preset