Custom JS not working
-
Hi, I’m trying to use the custom JS option to show a popup only if there is a specific CSS tag attached to the body element, but I can’t figure out exactly what JS to use. I thought it would be enough with, since it says if the condition is true the popup will be shown:
document.body.classList.contains(‘myprefix-open-class’ );
But the pop up is shown even when the class is not present.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Custom JS not working’ is closed to new replies.