Skip to content

Commit

Permalink
Merge pull request #16445 from brave/emerick-cr109-followup-hide-cert…
Browse files Browse the repository at this point in the history
…s-row-in-security-settings

Hide "Certificates managed by Brave" row in brave://settings/security
  • Loading branch information
emerick authored Dec 21, 2022
2 parents 099c366 + 8e07361 commit 7e47eb3
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions browser/resources/settings/brave_overrides/security_page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,20 @@ RegisterPolymerTemplateModifications({
} else {
link.setAttribute('hidden', 'true')
}
const certsTemplate = templateContent.querySelector(
'template[is=dom-if][if="[[showChromeRootStoreCertificates_]]"]')
if (!certsTemplate) {
console.error('[Brave Settings Overrides] Could not find certs template')
return
}
const chromeCertificates = certsTemplate.content.
getElementById('chromeCertificates')
if (!chromeCertificates) {
console.error(
'[Brave Settings Overrides] Could not find chromeCertificates id ' +
'on security page.')
} else {
chromeCertificates.setAttribute('hidden', 'true')
}
}
})

0 comments on commit 7e47eb3

Please sign in to comment.