Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.
Fix browser extension popup manual search/filter bug (#839)
Leendert de Borst8e9c100eacef
diff --git a/apps/browser-extension/src/entrypoints/contentScript/Popup.ts b/apps/browser-extension/src/entrypoints/contentScript/Popup.tsindex 9eb5bea18..f1763e151 100644--- a/apps/browser-extension/src/entrypoints/contentScript/Popup.ts+++ b/apps/browser-extension/src/entrypoints/contentScript/Popup.ts@@ -531,7 +531,7 @@ function handleSearchInput(searchInput: HTMLInputElement, credentials: Credentiaconst searchTerm = searchInput.value.toLowerCase();// Ensure we have unique credentials- const uniqueCredentials = Array.from(new Map(credentials.map(cred => [cred.id, cred])).values());+ const uniqueCredentials = Array.from(new Map(credentials.map(cred => [cred.Id, cred])).values());let filteredCredentials;if (searchTerm === '') {@@ -1339,7 +1339,12 @@ async function fetchAndProcessFavicon(url: string, maxSize: number, targetWidth:*/async function resizeImage(imageData: Uint8Array, contentType: string, targetWidth: number): Promise<Blob | null> {return new Promise((resolve) => {- const blob = new Blob([imageData], { type: contentType });+ // Convert Uint8Array to ArrayBuffer to ensure compatibility with Blob+ const arrayBuffer = imageData.buffer.slice(+ imageData.byteOffset,+ imageData.byteOffset + imageData.byteLength+ ) as ArrayBuffer; // Assert as ArrayBuffer to ensure type compatibility+ const blob = new Blob([arrayBuffer], { type: contentType });const img = new Image();/**