From 6dc07221a0010fa93780d8f333c7b557c92610a9 Mon Sep 17 00:00:00 2001 From: Jerry Date: Tue, 1 Dec 2020 19:27:41 +0300 Subject: [PATCH] popup fix --- htdocs/wp-content/themes/lawcarta/assets/js/promoPopup.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/htdocs/wp-content/themes/lawcarta/assets/js/promoPopup.js b/htdocs/wp-content/themes/lawcarta/assets/js/promoPopup.js index 955664a..26c32aa 100644 --- a/htdocs/wp-content/themes/lawcarta/assets/js/promoPopup.js +++ b/htdocs/wp-content/themes/lawcarta/assets/js/promoPopup.js @@ -24,7 +24,9 @@ if (document.querySelector('.show-promo-popup')) { setTimeout(function(){ + if (document.querySelector('.sign-block a[href*="user/registration"]')){ addPopup(); + } }, 6000); }