Skip to content

Commit

Permalink
Merge pull request #227 from spring-media/TRAC-2026_CMP_CustomVendorM…
Browse files Browse the repository at this point in the history
…apping

TRAC-2026: Fixed kameleoon runtime errors
  • Loading branch information
mehakraza authored Jun 4, 2024
2 parents 9fc2eb9 + cc190c1 commit 49b0b1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extensions/cmp/cmp_custom_vendor_mapping.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,8 @@
}

//kameleoon
if ((existingCookie?.includes('kameleoon')
|| existingFallbackCookie?.includes('kameleoon'))
if ((existingCookie && existingCookie.includes('kameleoon')
|| existingFallbackCookie && existingFallbackCookie.includes('kameleoon'))
&& (window.utag.data.user_hasPurSubscription === 'false'
|| (!window.utag.data['cp._cpauthhint']
|| !(window.utag.data['cp._cpauthhint']?.includes('1'))))) {
Expand Down

0 comments on commit 49b0b1c

Please sign in to comment.