Skip to content

Commit 08bae45

Browse files
committed
Fix. Code. ES Lint notice fixed.
1 parent 9d4cafc commit 08bae45

5 files changed

+17
-5
lines changed

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

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.map

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/src/apbct-public--5--external-forms.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@ function ctProtectExternal() {
2525
(currentForm.action.indexOf('webto.salesforce.com') !== -1)) ||
2626
(typeof(currentForm.action) == 'string' &&
2727
currentForm.querySelector('[href*="activecampaign"]')) ||
28-
(typeof(currentForm.action) == 'string' && currentForm.action.indexOf('hsforms.com') !== -1 && currentForm.getAttribute('data-hs-cf-bound'))
28+
(
29+
typeof(currentForm.action) == 'string' &&
30+
currentForm.action.indexOf('hsforms.com') !== -1 &&
31+
currentForm.getAttribute('data-hs-cf-bound')
32+
)
2933
) {
3034
apbctProcessExternalFormByFakeButton(currentForm, i, document);
3135
// Common flow - modify form's action

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4339,7 +4339,11 @@ function ctProtectExternal() {
43394339
(currentForm.action.indexOf('webto.salesforce.com') !== -1)) ||
43404340
(typeof(currentForm.action) == 'string' &&
43414341
currentForm.querySelector('[href*="activecampaign"]')) ||
4342-
(typeof(currentForm.action) == 'string' && currentForm.action.indexOf('hsforms.com') !== -1 && currentForm.getAttribute('data-hs-cf-bound'))
4342+
(
4343+
typeof(currentForm.action) == 'string' &&
4344+
currentForm.action.indexOf('hsforms.com') !== -1 &&
4345+
currentForm.getAttribute('data-hs-cf-bound')
4346+
)
43434347
) {
43444348
apbctProcessExternalFormByFakeButton(currentForm, i, document);
43454349
// Common flow - modify form's action

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4775,7 +4775,11 @@ function ctProtectExternal() {
47754775
(currentForm.action.indexOf('webto.salesforce.com') !== -1)) ||
47764776
(typeof(currentForm.action) == 'string' &&
47774777
currentForm.querySelector('[href*="activecampaign"]')) ||
4778-
(typeof(currentForm.action) == 'string' && currentForm.action.indexOf('hsforms.com') !== -1 && currentForm.getAttribute('data-hs-cf-bound'))
4778+
(
4779+
typeof(currentForm.action) == 'string' &&
4780+
currentForm.action.indexOf('hsforms.com') !== -1 &&
4781+
currentForm.getAttribute('data-hs-cf-bound')
4782+
)
47794783
) {
47804784
apbctProcessExternalFormByFakeButton(currentForm, i, document);
47814785
// Common flow - modify form's action

0 commit comments

Comments
 (0)