1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-27 12:36:14 +01:00

Restrict WebAuthn to Windows only for Electron (#322)

This commit is contained in:
Oscar Hinton 2021-04-05 22:38:45 +02:00 committed by GitHub
parent 08a856645b
commit ba742f72d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -130,8 +130,10 @@ export class ElectronPlatformUtilsService implements PlatformUtilsService {
return remote.app.getVersion();
}
// Temporarily restricted to only Windows until https://github.com/electron/electron/pull/28349
// has been merged and an updated electron build is available.
supportsWebAuthn(win: Window): boolean {
return true;
return process.platform === 'win32';
}
supportsDuo(): boolean {