Merge branch 'feature/template-checkout'

This commit is contained in:
Saulo Klein Nery 2022-12-26 11:10:44 -03:00
commit 913ff60618

View File

@ -168,10 +168,10 @@ export default class Footer {
if (mutation.type === "attributes" && mutation.attributeName === "style") { if (mutation.type === "attributes" && mutation.attributeName === "style") {
if (target.style.display === "none") { if (target.style.display === "none") {
console.log("carrinho cheio"); console.log("carrinho cheio");
this.footerPrateleira.style.display = "";
if (!this.footerPrateleira.classList.contains("slick-initialized")) if (!this.footerPrateleira.classList.contains("slick-initialized"))
this.addCarrossel(); this.addCarrossel();
this.footerPrateleira.style.display = "";
} else { } else {
this.footerPrateleira.style.display = "none"; this.footerPrateleira.style.display = "none";
console.log("carrinho vazio"); console.log("carrinho vazio");