diff --git a/js/rcfwc.js b/js/rcfwc.js index 6a32fc7..344752a 100644 --- a/js/rcfwc.js +++ b/js/rcfwc.js @@ -3,8 +3,6 @@ jQuery( document ).ready(function() { jQuery( document.body ).on( 'update_checkout updated_checkout applied_coupon_in_checkout removed_coupon_in_checkout checkout_error', function() { if(jQuery('.g-recaptcha').length > 0) { if (typeof grecaptcha !== "undefined" && typeof grecaptcha.reset === "function") { - console.log("Hello"); - console.log(grecaptcha); var count = 0; jQuery(".g-recaptcha").each(function () { grecaptcha.reset(count); @@ -15,6 +13,7 @@ jQuery( document ).ready(function() { }); }); +/* Woo Checkout Block */ if ( wp && wp.data ) { var unsubscribe = wp.data.subscribe(function() { const recaptcha = document.querySelector('.g-recaptcha');