Skip to content

Commit 8e80b51

Browse files
authored
Merge pull request #533 from red-gate/rm-recaptcha-layout-change
remove google reCaptcha privacy notice layout change
2 parents 893f934 + c7e6bef commit 8e80b51

File tree

2 files changed

+1
-17
lines changed

2 files changed

+1
-17
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "honeycomb-web-toolkit",
3-
"version": "14.3.14",
3+
"version": "14.3.15",
44
"repository": {
55
"type": "git",
66
"url": "https://github.com/red-gate/honeycomb-web-toolkit"

src/forms/js/honeycomb.forms.marketo.js

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -135,21 +135,6 @@ const formatCheckboxes = form => {
135135
}
136136
};
137137

138-
/**
139-
* Move the Google reCaptcha privacy notice into our privacy notice block.
140-
* Currently this notice only shows up on selected forms.
141-
*
142-
* @param {HTMLElement} form The Marketo form
143-
*/
144-
const formatReCaptchaPrivacyNotice = form => {
145-
const reCaptchaPrivacyNotice = form.querySelector('.mktoCaptchaDisclaimer');
146-
const privacyNoticeBlock = form.querySelector('.mktoPrivacyNotice div');
147-
148-
if ( ! reCaptchaPrivacyNotice || ! privacyNoticeBlock ) return;
149-
150-
privacyNoticeBlock.appendChild(reCaptchaPrivacyNotice);
151-
};
152-
153138
const create = c => {
154139

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

174159
removeDefaultStyles();
175160
formatCheckboxes(marketoFormElement);
176-
formatReCaptchaPrivacyNotice(marketoFormElement);
177161

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

0 commit comments

Comments
 (0)