Contentful Personalization & Analytics
    Preparing search index...

    Function resolvePersistedPersistenceConsent

    • Resolve stored persistence consent while preserving the legacy event-consent fallback.

      Parameters

      • persistenceConsent: boolean | undefined

        Value stored in the dedicated persistence-consent key.

      • consent: boolean | undefined

        Value stored in the legacy event-consent key.

      Returns boolean | undefined

      Dedicated persistence consent, or true for legacy accepted consent.