Skip to content

Commit 967ee1f

Browse files
committed
Fix. JS parameters. Gathering loading fixed.
1 parent df7a1ba commit 967ee1f

20 files changed

+46
-19
lines changed

inc/cleantalk-common.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,7 @@ function apbct_get_sender_info()
684684
'bot_detector_prepared_form_exclusions' => apbct__bot_detector_get_prepared_exclusion(),
685685
'bot_detector_frontend_data_log' => apbct__bot_detector_get_fd_log(),
686686
'submit_time_calculation_enabled' => SubmitTimeHandler::isCalculationDisabled() ? 0 : 1,
687-
'ct_gatheringLoaded' => Cookie::getBool('ct_gatheringLoaded'),
687+
'ct_gathering_loaded' => Cookie::getBool('ct_gathering_loaded'),
688688
);
689689

690690
// Unset cookies_enabled from sender_info if cookies_type === none

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: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2068,7 +2068,7 @@ function initParams(gatheringLoaded) {
20682068
}
20692069

20702070
if (gatheringLoaded) {
2071-
initCookies.push(['ct_gatheringLoaded', gatheringLoaded]);
2071+
initCookies.push(['ct_gathering_loaded', gatheringLoaded]);
20722072
}
20732073

20742074
ctSetCookie(initCookies);
@@ -4044,6 +4044,7 @@ async function apbct_ready() {
40444044
let gatheringLoaded = false;
40454045

40464046
if (
4047+
apbctLocalStorage.get('apbct_existing_visitor') && // Not for the first hit
40474048
+ctPublic.settings__data__bot_detector_enabled && // If Bot-Detector is active
40484049
!apbctLocalStorage.get('bot_detector_event_token') && // and no `event_token` generated
40494050
typeof ApbctGatheringData === 'undefined' // and no `gathering` loaded yet
@@ -4144,6 +4145,8 @@ async function apbct_ready() {
41444145
if (ctPublic.settings__sfw__anti_crawler && +ctPublic.settings__data__bot_detector_enabled) {
41454146
handler.toolForAntiCrawlerCheckDuringBotDetector();
41464147
}
4148+
4149+
apbctLocalStorage.set('apbct_existing_visitor', 1);
41474150
}
41484151

41494152
if (ctPublic.data__key_is_ok) {

0 commit comments

Comments
 (0)