mirror of
https://github.com/aliasvault/aliasvault.git
synced 2026-03-24 09:34:05 -04:00
fix: guard against undefined credentials.create/get in WebAuthn override (fixes #1854)
This commit is contained in:
committed by
Leendert de Borst
parent
c6fbef62db
commit
0179c697ef
@@ -27,7 +27,7 @@ export default defineUnlistedScript(() => {
|
||||
* Check if navigator.credentials API is available
|
||||
* Some pages (iframes, non-secure contexts, older browsers) may not have this API
|
||||
*/
|
||||
if (!navigator.credentials) {
|
||||
if (!navigator.credentials || !navigator.credentials.create || !navigator.credentials.get) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user