Skip to content

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

Cleanup FaviconService.ts (#1404)

Leendert de Borst93c8ca3ff2aa
diff --git a/apps/browser-extension/src/utils/FaviconService.ts b/apps/browser-extension/src/utils/FaviconService.ts
index 9ee774d55..02d612fff 100644
--- a/apps/browser-extension/src/utils/FaviconService.ts
+++ b/apps/browser-extension/src/utils/FaviconService.ts
@@ -143,12 +143,9 @@ export class FaviconService {
// Check if logo already exists (deduplication)
if (sqliteClient.hasLogoForSource(source)) {
- console.debug(`[Favicon] Logo already exists for source "${source}", skipping fetch`);
return { success: false, skipped: true };
}
- console.debug(`[Favicon] No logo found for source "${source}", fetching...`);
-
try {
// Create timeout promise
const timeoutPromise = new Promise<never>((_, reject) =>
@@ -159,11 +156,8 @@ export class FaviconService {
const faviconPromise = webApi.get<{ image: string }>(`Favicon/Extract?url=${encodeURIComponent(normalizedUrl)}`);
const faviconResponse = await Promise.race([faviconPromise, timeoutPromise]);
- console.debug('[Favicon] Response received:', faviconResponse?.image ? 'has image' : 'no image');
-
if (faviconResponse?.image) {
const decodedImage = Uint8Array.from(Buffer.from(faviconResponse.image, 'base64'));
- console.debug('[Favicon] Logo decoded successfully');
return { success: true, imageData: decodedImage };
}