Fix: js error #raty_baner

This commit is contained in:
2026-05-14 14:29:07 +02:00
parent 8a13e0b753
commit ae052dbf90

View File

@@ -584,9 +584,11 @@
const priceProduct = document.querySelector('.product-prices .current-price span[itemprop="price"]').getAttribute('content');
window.addEventListener('load', (event) => {
const ratyBaner = document.querySelector('#raty_baner');
ratyBaner.addEventListener('click', () => {
PoliczRate(priceProduct);
});
if (ratyBaner) {
ratyBaner.addEventListener('click', () => {
PoliczRate(priceProduct);
});
}
});
</script>
{/literal}