Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.
Linting fixes (#2159)
Leendert de Borst825dcd92d82e
diff --git a/apps/browser-extension/src/entrypoints/background/ClipboardClearHandler.ts b/apps/browser-extension/src/entrypoints/background/ClipboardClearHandler.tsindex 6cc3c6dc4..2af269ecf 100644--- a/apps/browser-extension/src/entrypoints/background/ClipboardClearHandler.ts+++ b/apps/browser-extension/src/entrypoints/background/ClipboardClearHandler.ts@@ -27,7 +27,7 @@ async function createOffscreenDocument(): Promise<void> {// Check if offscreen document already existsif (chrome.runtime.getContexts) {const existingContexts = await chrome.runtime.getContexts({- contextTypes: ['OFFSCREEN_DOCUMENT'],+ contextTypes: ['OFFSCREEN_DOCUMENT' as chrome.runtime.ContextType],documentUrls: [chrome.runtime.getURL('offscreen.html')]});diff --git a/apps/browser-extension/src/entrypoints/background/PasskeyHandler.ts b/apps/browser-extension/src/entrypoints/background/PasskeyHandler.tsindex df55f1e8c..2b9c1fe56 100644--- a/apps/browser-extension/src/entrypoints/background/PasskeyHandler.ts+++ b/apps/browser-extension/src/entrypoints/background/PasskeyHandler.ts@@ -95,6 +95,10 @@ export async function handleWebAuthnCreate(data: any): Promise<any> {focused: true});+ if (!popup) {+ throw new Error('Failed to open the passkey popup window');+ }+// Wait for response from popupreturn new Promise((resolve, reject) => {pendingRequests.set(requestId, { resolve, reject, windowId: popup.id });@@ -154,6 +158,10 @@ export async function handleWebAuthnGet(data: any): Promise<any> {focused: true});+ if (!popup) {+ throw new Error('Failed to open the passkey popup window');+ }+// Wait for response from popupreturn new Promise((resolve, reject) => {pendingRequests.set(requestId, { resolve, reject, windowId: popup.id });diff --git a/apps/browser-extension/src/entrypoints/popup/components/EmailPreview.tsx b/apps/browser-extension/src/entrypoints/popup/components/EmailPreview.tsxindex 63e36db03..fa589ef3f 100644--- a/apps/browser-extension/src/entrypoints/popup/components/EmailPreview.tsx+++ b/apps/browser-extension/src/entrypoints/popup/components/EmailPreview.tsx@@ -126,7 +126,7 @@ export const EmailPreview: React.FC<EmailPreviewProps> = ({ email }) => {// Only update emails if they actually changed to preserve displayedCountsetEmails(prevEmails => {- const emailsChanged = JSON.stringify(prevEmails.map(e => e.id)) !== JSON.stringify(allMails.map(e => e.id));+ const emailsChanged = JSON.stringify(prevEmails.map(e => e.id)) !== JSON.stringify(allMails.map((e: MailboxEmail) => e.id));if (emailsChanged) {updateDisplayedEmails(allMails, displayedCount);return allMails;diff --git a/apps/browser-extension/src/entrypoints/popup/context/LoadingContext.tsx b/apps/browser-extension/src/entrypoints/popup/context/LoadingContext.tsxindex 80217a3fe..5475c1f09 100644--- a/apps/browser-extension/src/entrypoints/popup/context/LoadingContext.tsx+++ b/apps/browser-extension/src/entrypoints/popup/context/LoadingContext.tsx@@ -63,7 +63,7 @@ export const LoadingProvider: React.FC<{ children: React.ReactNode }> = ({ childreturn (<LoadingContext.Provider value={value}>- <LoadingSpinnerFullScreen message={loadingMessage} />+ <LoadingSpinnerFullScreen />{children}</LoadingContext.Provider>);