1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-29 12:55:21 +01:00

[PM-15187] Do not use innerHTML (#12108)

* do not use innerHTML

* remove unused catalog message
This commit is contained in:
Jonathan Prusik 2024-11-22 14:07:13 -05:00 committed by GitHub
parent 02ea368446
commit 04caec6f69
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 14 deletions

View File

@ -1125,6 +1125,10 @@
"message": "WARNING", "message": "WARNING",
"description": "WARNING (should stay in capitalized letters if the language permits)" "description": "WARNING (should stay in capitalized letters if the language permits)"
}, },
"warningCapitalized": {
"message": "Warning",
"description": "Warning (should maintain locale-relevant capitalization)"
},
"confirmVaultExport": { "confirmVaultExport": {
"message": "Confirm vault export" "message": "Confirm vault export"
}, },
@ -1503,19 +1507,6 @@
"enableAutoFillOnPageLoadDesc": { "enableAutoFillOnPageLoadDesc": {
"message": "If a login form is detected, autofill when the web page loads." "message": "If a login form is detected, autofill when the web page loads."
}, },
"autofillOnPageLoadWarning": {
"message": "$OPENTAG$Warning:$CLOSETAG$ Compromised or untrusted websites can exploit autofill on page load.",
"placeholders": {
"openTag": {
"content": "$1",
"example": "<b>"
},
"closeTag": {
"content": "$2",
"example": "</b>"
}
}
},
"experimentalFeature": { "experimentalFeature": {
"message": "Compromised or untrusted websites can exploit autofill on page load." "message": "Compromised or untrusted websites can exploit autofill on page load."
}, },

View File

@ -160,7 +160,10 @@
<bit-card> <bit-card>
<bit-hint class="tw-mb-6 tw-text-sm"> <bit-hint class="tw-mb-6 tw-text-sm">
{{ "enableAutoFillOnPageLoadDesc" | i18n }} {{ "enableAutoFillOnPageLoadDesc" | i18n }}
<span [innerHTML]="'autofillOnPageLoadWarning' | i18n: '\<b>' : '\</b>'"></span> <span
><b>{{ "warningCapitalized" | i18n }}</b
>: {{ "experimentalFeature" | i18n }}</span
>
<a <a
bitLink bitLink
class="tw-no-underline" class="tw-no-underline"