@chordcommerce/analytics 1.15.0 → 1.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -15,7 +15,9 @@ export const addCdpConsent = (options) => {
|
|
|
15
15
|
let adapter = null;
|
|
16
16
|
let lastProcessedConsent = null;
|
|
17
17
|
const POLLING_INTERVAL_MS = 50;
|
|
18
|
-
const TIMEOUT_MS =
|
|
18
|
+
const TIMEOUT_MS = options.awaitConsentTimeout
|
|
19
|
+
? options.awaitConsentTimeout
|
|
20
|
+
: 60000;
|
|
19
21
|
/**
|
|
20
22
|
* Returns the adapter for the specified consent management platform.
|
|
21
23
|
*/
|
package/dist/types/client.d.ts
CHANGED
package/package.json
CHANGED