1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +00:00
This commit is contained in:
Oscar Hinton
2021-03-16 17:44:31 +01:00
committed by GitHub
parent 35ecbcc11a
commit 1ea8762eeb
22 changed files with 516 additions and 141 deletions

View File

@@ -158,11 +158,8 @@ export class WebPlatformUtilsService implements PlatformUtilsService {
return process.env.APPLICATION_VERSION || '-';
}
supportsU2f(win: Window): boolean {
if (win != null && (win as any).u2f != null) {
return true;
}
return this.isChrome() || ((this.isEdge() || this.isOpera() || this.isVivaldi()) && !Utils.isMobileBrowser);
supportsWebAuthn(win: Window): boolean {
return (typeof(PublicKeyCredential) !== 'undefined');
}
supportsDuo(): boolean {