Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.
Add sanity check to prevent webauthn init errors in browser extension (#1854)
Leendert de Borst2ad6e7dc4a5e
diff --git a/apps/browser-extension/src/entrypoints/webauthn.ts b/apps/browser-extension/src/entrypoints/webauthn.tsindex 50a6bfdff..a688c7f3a 100644--- a/apps/browser-extension/src/entrypoints/webauthn.ts+++ b/apps/browser-extension/src/entrypoints/webauthn.ts@@ -23,6 +23,14 @@ export default defineUnlistedScript(() => {}(window as any).__aliasVaultWebAuthnIntercepted = true;+ /*+ * Check if navigator.credentials API is available+ * Some pages (iframes, non-secure contexts, older browsers) may not have this API+ */+ if (!navigator.credentials) {+ return;+ }+// Get the original implementations from the reservation script or bind directlyconst queue = (window as any).__aliasVaultWebAuthnQueue;const originalCreate = queue?.originalCreate || navigator.credentials.create.bind(navigator.credentials);