From 23d3435c0f52017bdf51aa9f45ae954ecb560f9e Mon Sep 17 00:00:00 2001 From: Andreas Coroiu Date: Fri, 28 Apr 2023 11:11:12 +0200 Subject: [PATCH] [EC-598] chore: add name to polyfill classes --- apps/browser/src/fido2/content/page-script.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/browser/src/fido2/content/page-script.ts b/apps/browser/src/fido2/content/page-script.ts index f53aa0a2d4f..ca8d5915446 100644 --- a/apps/browser/src/fido2/content/page-script.ts +++ b/apps/browser/src/fido2/content/page-script.ts @@ -20,12 +20,13 @@ if (!browserNativeWebauthnSupport) { throw new Error("Webauthn not supported in this browser."); }, }; - window.PublicKeyCredential = class { + window.PublicKeyCredential = class PolyfillPublicKeyCredential { static isUserVerifyingPlatformAuthenticatorAvailable() { return Promise.resolve(true); } } as any; - window.AuthenticatorAttestationResponse = class {} as any; + window.AuthenticatorAttestationResponse = + class PolyfillAuthenticatorAttestationResponse {} as any; } catch { /* empty */ }