devowl-wp
    Preparing search index...

    Dynamically allow to get a predecision with a extra request to external promises from a custom document event. You are allowed to add multiple promises but the first resolved one which resolves a predecision gets respected. If a promise returns a non-valid predecision (e.g. void) it is ignored (useful to delay the appearance of the cookie banner programmatically).

    document.addEventListener("RCB/PreDecision/Promises", ({ detail: { promises } }) => {
    promises.push(new Promise((resolve) => setTimeout(resolve, 15000)));
    });
    document.addEventListener("RCB/PreDecision/Promises", ({ detail: { promises } }) => {
    promises.push(Promise.resolve("essentials"));
    });
    type PreDecisionGatewayEventPromises = {
        promises: Promise<PreDecisionGatewayResult | void>[];
    }
    Index

    Properties

    Properties

    promises: Promise<PreDecisionGatewayResult | void>[]