Skip to content

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

Refactor (#678)

Leendert de Borst76dc46503252
diff --git a/browser-extension/src/entrypoints/contentScript/Popup.ts b/browser-extension/src/entrypoints/contentScript/Popup.ts
index 5fe04cfdb..6a8e17f21 100644
--- a/browser-extension/src/entrypoints/contentScript/Popup.ts
+++ b/browser-extension/src/entrypoints/contentScript/Popup.ts
@@ -119,6 +119,7 @@ export function updatePopupContent(credentials: Credential[], credentialList: HT
*/
export function removeExistingPopup(container: HTMLElement) : void {
const existingInContainer = container.querySelector('#aliasvault-credential-popup');
+
if (existingInContainer) {
// Remove event listeners before removing the element
if (popupListeners && popupListeners.has(container)) {
@@ -128,8 +129,8 @@ export function removeExistingPopup(container: HTMLElement) : void {
popupListeners.delete(container);
}
}
+
existingInContainer.remove();
- return;
}
}
diff --git a/browser-extension/src/entrypoints/contentScript/style.css b/browser-extension/src/entrypoints/contentScript/style.css
index 145afe0f0..68c2459d7 100644
--- a/browser-extension/src/entrypoints/contentScript/style.css
+++ b/browser-extension/src/entrypoints/contentScript/style.css
@@ -8,7 +8,6 @@ body {
position: absolute;
z-index: 2147483646;
background-color: rgb(31, 41, 55);
- border-radius: 8px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
width: 320px;
border: 1px solid rgb(55, 65, 81);
@@ -110,7 +109,6 @@ body {
font-size: 0.85em;
white-space: nowrap;
overflow: hidden;
- font-size: 12px;
text-overflow: ellipsis;
color: #9ca3af;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;