mirror of
https://github.com/aliasvault/aliasvault.git
synced 2026-03-24 17:42:10 -04:00
Merge pull request #1855 from aliasvault/1854-opening-certain-vnc-viewer-websites-can-trigger-a-browser-extension-error
Fix browser extension issue triggered by some websites (e.g. VNC viewers)
This commit is contained in:
@@ -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 directly
|
||||
const queue = (window as any).__aliasVaultWebAuthnQueue;
|
||||
const originalCreate = queue?.originalCreate || navigator.credentials.create.bind(navigator.credentials);
|
||||
|
||||
Reference in New Issue
Block a user