mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 08:43:33 +00:00
[EC-598] chore: add name to polyfill classes
This commit is contained in:
@@ -20,12 +20,13 @@ if (!browserNativeWebauthnSupport) {
|
|||||||
throw new Error("Webauthn not supported in this browser.");
|
throw new Error("Webauthn not supported in this browser.");
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
window.PublicKeyCredential = class {
|
window.PublicKeyCredential = class PolyfillPublicKeyCredential {
|
||||||
static isUserVerifyingPlatformAuthenticatorAvailable() {
|
static isUserVerifyingPlatformAuthenticatorAvailable() {
|
||||||
return Promise.resolve(true);
|
return Promise.resolve(true);
|
||||||
}
|
}
|
||||||
} as any;
|
} as any;
|
||||||
window.AuthenticatorAttestationResponse = class {} as any;
|
window.AuthenticatorAttestationResponse =
|
||||||
|
class PolyfillAuthenticatorAttestationResponse {} as any;
|
||||||
} catch {
|
} catch {
|
||||||
/* empty */
|
/* empty */
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user