1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 16:53:34 +00:00

[EC-598] chore: add name to polyfill classes

This commit is contained in:
Andreas Coroiu
2023-04-28 11:11:12 +02:00
parent 41b0c38c94
commit 23d3435c0f

View File

@@ -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 */
} }