Fix: js error #raty_baner
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user