Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions src/js/10-ketch-consent.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,16 @@
})

// If the user is in the US-CA region, change the text of the preference center link
window.ketch('on', 'regionInfo', (regionInfo) => {
const customTextRegions = ['US-CA']
if (customTextRegions.includes(regionInfo)) {
const preferenceCenterLinkElement = document.getElementById('preferenceCenterLink')
if (preferenceCenterLinkElement) {
preferenceCenterLinkElement.textContent = 'Do Not Sell My Personal Information'
}
}
})
// 3/19/25: Disabled this feature due to shifting CA legal requirements. Will re-enable with new textContent if needed.

Check warning on line 11 in src/js/10-ketch-consent.js

View workflow job for this annotation

GitHub Actions / build-and-deploy

This line has a length of 121. Maximum allowed is 120
// window.ketch('on', 'regionInfo', (regionInfo) => {
// const customTextRegions = ['US-CA']
// if (customTextRegions.includes(regionInfo)) {
// const preferenceCenterLinkElement = document.getElementById('preferenceCenterLink')
// if (preferenceCenterLinkElement) {
// preferenceCenterLinkElement.textContent = 'Do Not Sell My Personal Information'
// }
// }
// })

// If the user is in the default jurisdiction, remove the preference center link
window.ketch('on', 'jurisdiction', (jurisdiction) => {
Expand Down
Loading