window.addEventListener('message', function(event) { // SECURITY: Only accept messages coming from your main parent domain if (event.origin !== 'https://gethergoing.com') return; // If the message matches, execute the bypass if (event.data === 'USER_HAS_ACCEPTED_TERMS') { // 1. Set their local storage so they remember it next time localStorage.setItem("termsAccepted", "true"); // 2. Code to hide or destroy their specific consent banner UI const localBanner = document.getElementById("your-consent-banner-id"); if (localBanner) { localBanner.style.display = "none"; } } });
Skip to main content