Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Update ConversionUtility.tsx (#638)

Leendert de Borst6047c8f80d85
diff --git a/browser-extensions/chrome/src/app/utils/ConversionUtility.tsx b/browser-extensions/chrome/src/app/utils/ConversionUtility.tsx
index 9aeeffe52..16480816b 100644
--- a/browser-extensions/chrome/src/app/utils/ConversionUtility.tsx
+++ b/browser-extensions/chrome/src/app/utils/ConversionUtility.tsx
@@ -21,9 +21,7 @@ class ConversionUtility {
if (anchors.length > 0) {
anchors.forEach((anchor: Element) => {
// Handle target attribute
- if (!anchor.hasAttribute('target')) {
- anchor.setAttribute('target', '_blank');
- } else if (anchor.getAttribute('target') !== '_blank') {
+ if (!anchor.hasAttribute('target') || anchor.getAttribute('target') !== '_blank') {
anchor.setAttribute('target', '_blank');
}