Answer the question
In order to leave comments, you need to log in
Why doesn't js work in safari browsers?
Tell me who understands why this code does not work in safari?
Thank you!
const modal = $('.modal__exit');
document.addEventListener("mouseleave", function() {
const close = localStorage.getItem("close");
if (close !== "1") {
modal.show(300);
}
localStorage.setItem("close", "1");
});
Answer the question
In order to leave comments, you need to log in
modal show(...);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question