haciendo pruebas

This commit is contained in:
2025-11-13 21:40:08 +01:00
parent d31a6e9e8e
commit 4f1b3f2bb6
3 changed files with 96 additions and 3 deletions

View File

@ -20,8 +20,8 @@ $(() => {
// Actualizar al cargar
updateCartCount();
// Si quieres refrescar cada 60s:
setInterval(updateCartCount, 60000);
// Si quieres refrescar cada 10s:
setInterval(updateCartCount, 10000);
// generate a custom event to update the cart count from other scripts
document.addEventListener("update-cart", updateCartCount);