Skip to content

Commit

Permalink
Fixed kameleoon runtime errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mehakraza committed Jun 4, 2024
1 parent 5649366 commit cc190c1
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 cc190c1

Please sign in to comment.