Skip to content

Fix missing Ethereum permissions header #17390

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
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
24 changes: 16 additions & 8 deletions browser/resources/settings/brave_overrides/site_details.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,14 @@ RegisterPolymerTemplateModifications({
console.error(
'[Brave Settings Overrides] Couldn\'t find autoplay settings')
}
else {autoplaySettings.setAttribute(
'label', loadTimeData.getString('siteSettingsAutoplay'))} curChild++
// Google Sign-In feature
const isGoogleSignInFeatureEnabled =
loadTimeData.getBoolean('isGoogleSignInFeatureEnabled')
else {
autoplaySettings.setAttribute(
'label', loadTimeData.getString('siteSettingsAutoplay'))
}
curChild++
// Google Sign-In feature
const isGoogleSignInFeatureEnabled =
loadTimeData.getBoolean('isGoogleSignInFeatureEnabled')
if (isGoogleSignInFeatureEnabled) {
firstPermissionItem.insertAdjacentHTML(
'beforebegin',
Expand All @@ -65,9 +68,11 @@ RegisterPolymerTemplateModifications({
console.error(
'[Brave Settings Overrides] Couldn\'t find Google signin settings')
}
else {googleSignInSettings.setAttribute(
'label',
loadTimeData.getString('siteSettingsGoogleSignIn'))} curChild++
else {
googleSignInSettings.setAttribute(
'label', loadTimeData.getString('siteSettingsGoogleSignIn'))
}
curChild++
}
const isNativeBraveWalletEnabled = loadTimeData.getBoolean('isNativeBraveWalletFeatureEnabled')
if (isNativeBraveWalletEnabled) {
Expand All @@ -84,6 +89,9 @@ RegisterPolymerTemplateModifications({
if (!ethereumSettings) {
console.error(
'[Brave Settings Overrides] Couldn\'t find Ethereum settings')
} else {
ethereumSettings.setAttribute(
'label', loadTimeData.getString('siteSettingsEthereum'))
}
curChild++
firstPermissionItem.insertAdjacentHTML(
Expand Down