Skip to content

Commit

Permalink
Merge pull request #533 from red-gate/rm-recaptcha-layout-change
Browse files Browse the repository at this point in the history
remove google reCaptcha privacy notice layout change
  • Loading branch information
philscott-rg authored Jul 15, 2024
2 parents 893f934 + c7e6bef commit 8e80b51
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "honeycomb-web-toolkit",
"version": "14.3.14",
"version": "14.3.15",
"repository": {
"type": "git",
"url": "https://github.com/red-gate/honeycomb-web-toolkit"
Expand Down
16 changes: 0 additions & 16 deletions src/forms/js/honeycomb.forms.marketo.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,21 +135,6 @@ const formatCheckboxes = form => {
}
};

/**
* Move the Google reCaptcha privacy notice into our privacy notice block.
* Currently this notice only shows up on selected forms.
*
* @param {HTMLElement} form The Marketo form
*/
const formatReCaptchaPrivacyNotice = form => {
const reCaptchaPrivacyNotice = form.querySelector('.mktoCaptchaDisclaimer');
const privacyNoticeBlock = form.querySelector('.mktoPrivacyNotice div');

if ( ! reCaptchaPrivacyNotice || ! privacyNoticeBlock ) return;

privacyNoticeBlock.appendChild(reCaptchaPrivacyNotice);
};

const create = c => {

// Get the config for the form.
Expand All @@ -173,7 +158,6 @@ const create = c => {

removeDefaultStyles();
formatCheckboxes(marketoFormElement);
formatReCaptchaPrivacyNotice(marketoFormElement);

// Replicate default Google Analytics `form_submit` event.
marketoForm.onSuccess(() => {
Expand Down

0 comments on commit 8e80b51

Please sign in to comment.