From 652859f485655a410a0e74cacb206328ff026267 Mon Sep 17 00:00:00 2001 From: Jay Harris Date: Thu, 9 Jan 2025 14:35:43 +1300 Subject: [PATCH] [Settings]: Fix TrustedHTML assignment --- .../settings/brave_overrides/site_details.ts | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/browser/resources/settings/brave_overrides/site_details.ts b/browser/resources/settings/brave_overrides/site_details.ts index 72ec79143ce4..8d6e42aae9a8 100644 --- a/browser/resources/settings/brave_overrides/site_details.ts +++ b/browser/resources/settings/brave_overrides/site_details.ts @@ -41,9 +41,9 @@ RegisterPolymerTemplateModifications({ if (!firstPermissionItem) { console.error('[Settings] Couldn\'t find first permission item') } else { - firstPermissionItem.insertAdjacentHTML( + firstPermissionItem.insertAdjacentElement( 'beforebegin', - ` `) @@ -62,9 +62,9 @@ RegisterPolymerTemplateModifications({ const isGoogleSignInFeatureEnabled = loadTimeData.getBoolean('isGoogleSignInFeatureEnabled') if (isGoogleSignInFeatureEnabled) { - firstPermissionItem.insertAdjacentHTML( + firstPermissionItem.insertAdjacentElement( 'beforebegin', - ` `) @@ -83,9 +83,9 @@ RegisterPolymerTemplateModifications({ const isLocalhostAccessFeatureEnabled = loadTimeData.getBoolean('isLocalhostAccessFeatureEnabled') if (isLocalhostAccessFeatureEnabled) { - firstPermissionItem.insertAdjacentHTML( + firstPermissionItem.insertAdjacentElement( 'beforebegin', - ` `) @@ -103,9 +103,9 @@ RegisterPolymerTemplateModifications({ const isOpenAIChatFromBraveSearchEnabled = loadTimeData.getBoolean('isOpenAIChatFromBraveSearchEnabled') if (isOpenAIChatFromBraveSearchEnabled) { - firstPermissionItem.insertAdjacentHTML( + firstPermissionItem.insertAdjacentElement( 'beforebegin', - ` `) @@ -122,9 +122,9 @@ RegisterPolymerTemplateModifications({ const isNativeBraveWalletEnabled = loadTimeData.getBoolean('isNativeBraveWalletFeatureEnabled') if (isNativeBraveWalletEnabled) { - firstPermissionItem.insertAdjacentHTML( + firstPermissionItem.insertAdjacentElement( 'beforebegin', - ` `) @@ -137,9 +137,9 @@ RegisterPolymerTemplateModifications({ 'label', loadTimeData.getString('siteSettingsEthereum')) } curChild++ - firstPermissionItem.insertAdjacentHTML( + firstPermissionItem.insertAdjacentElement( 'beforebegin', - ` `)