Skip to content

Commit

Permalink
Merge pull request #26554 from jagadeshjai/fix_remove_ad_personalizat…
Browse files Browse the repository at this point in the history
…ion_info

[SiteSettings] Remove non-applicable info when deleting site data.
  • Loading branch information
bsclifton authored Nov 18, 2024
2 parents 6165293 + d0fafa0 commit ee88399
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions browser/resources/settings/brave_overrides/site_details.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,12 @@ RegisterPolymerTemplateModifications({
solanaSettings.setAttribute(
'label', loadTimeData.getString('siteSettingsSolana'))
}
const adPersonalization = templateContent.querySelector('#adPersonalization')
if (!adPersonalization) {
console.error('[Brave Settings Overrides] Could not find adPersonalization element to hide')
} else {
adPersonalization.remove()
}
}
}

Expand Down

0 comments on commit ee88399

Please sign in to comment.