Skip to content

Commit eb0c2e6

Browse files
committed
Fix. CatchXHR. Mailpoet integration added to provide the event_token.
1 parent 3828980 commit eb0c2e6

17 files changed

Lines changed: 62 additions & 17 deletions

js/apbct-public-bundle.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/apbct-public-bundle_ext-protection.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/apbct-public-bundle_ext-protection_gathering.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/apbct-public-bundle_full-protection.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/apbct-public-bundle_full-protection_gathering.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/apbct-public-bundle_gathering.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/apbct-public-bundle_int-protection.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/apbct-public-bundle_int-protection_gathering.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/prebuild/apbct-public-bundle.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3101,6 +3101,7 @@ class ApbctHandler {
31013101
document.querySelector('#newAppointmentForm') !== null ||
31023102
document.querySelector('.booked-calendar-shortcode-wrap') !== null ||
31033103
document.querySelector('.et_pb_newsletter_form') !== null ||
3104+
document.querySelector('form.mailpoet_form') !== null ||
31043105
(
31053106
// Back In Stock Notifier for WooCommerce | WooCommerce Waitlist Pro
31063107
document.body.classList.contains('single-product') &&
@@ -3116,7 +3117,11 @@ class ApbctHandler {
31163117
body.indexOf('action=wfu_ajax_action_ask_server') !== -1 ||
31173118
body.indexOf('action=booked_add_appt') !== -1 ||
31183119
body.indexOf('action=cwginstock_product_subscribe') !== -1 ||
3119-
body.indexOf('action=et_pb_submit_subscribe_form') !== -1
3120+
body.indexOf('action=et_pb_submit_subscribe_form') !== -1 ||
3121+
(
3122+
body.indexOf('action=mailpoet') !== -1 &&
3123+
body.indexOf('method=subscribe') !== -1
3124+
)
31203125
);
31213126
const isDiviNewsletterRequest = body && typeof body === 'string' &&
31223127
body.indexOf('action=et_pb_submit_subscribe_form') !== -1;

js/prebuild/apbct-public-bundle_ext-protection.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3101,6 +3101,7 @@ class ApbctHandler {
31013101
document.querySelector('#newAppointmentForm') !== null ||
31023102
document.querySelector('.booked-calendar-shortcode-wrap') !== null ||
31033103
document.querySelector('.et_pb_newsletter_form') !== null ||
3104+
document.querySelector('form.mailpoet_form') !== null ||
31043105
(
31053106
// Back In Stock Notifier for WooCommerce | WooCommerce Waitlist Pro
31063107
document.body.classList.contains('single-product') &&
@@ -3116,7 +3117,11 @@ class ApbctHandler {
31163117
body.indexOf('action=wfu_ajax_action_ask_server') !== -1 ||
31173118
body.indexOf('action=booked_add_appt') !== -1 ||
31183119
body.indexOf('action=cwginstock_product_subscribe') !== -1 ||
3119-
body.indexOf('action=et_pb_submit_subscribe_form') !== -1
3120+
body.indexOf('action=et_pb_submit_subscribe_form') !== -1 ||
3121+
(
3122+
body.indexOf('action=mailpoet') !== -1 &&
3123+
body.indexOf('method=subscribe') !== -1
3124+
)
31203125
);
31213126
const isDiviNewsletterRequest = body && typeof body === 'string' &&
31223127
body.indexOf('action=et_pb_submit_subscribe_form') !== -1;

0 commit comments

Comments
 (0)