Skip to content

Commit

Permalink
Separate timeout for the collctor
Browse files Browse the repository at this point in the history
  • Loading branch information
3link committed Sep 1, 2023
1 parent 1981250 commit 9f6e02b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modules/liveIntentIdSystem.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ function parseLiveIntentCollectorConfig(collectConfig) {
collectConfig.fpiStorageStrategy && (config.storageStrategy = collectConfig.fpiStorageStrategy);
collectConfig.fpiExpirationDays && (config.expirationDays = collectConfig.fpiExpirationDays);
collectConfig.collectorUrl && (config.collectorUrl = collectConfig.collectorUrl);
config.ajaxTimeout = collectConfig.ajaxTimeout || DEFAULT_AJAX_TIMEOUT;
return config;
}

Expand Down Expand Up @@ -101,9 +102,9 @@ function initializeLiveConnect(configParams) {
identityResolutionConfig.url = configParams.url
}

const liveConnectConfig = parseLiveIntentCollectorConfig(configParams.liCollectConfig);
identityResolutionConfig.ajaxTimeout = configParams.ajaxTimeout || DEFAULT_AJAX_TIMEOUT;

liveConnectConfig.ajaxTimeout = configParams.ajaxTimeout || DEFAULT_AJAX_TIMEOUT;
const liveConnectConfig = parseLiveIntentCollectorConfig(configParams.liCollectConfig);

if (!liveConnectConfig.appId && configParams.distributorId) {
liveConnectConfig.distributorId = configParams.distributorId;
Expand Down

0 comments on commit 9f6e02b

Please sign in to comment.