1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-09-19 02:51:14 +02: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(); 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 { supportsWebAuthn(win: Window): boolean {
return true; return process.platform === 'win32';
} }
supportsDuo(): boolean { supportsDuo(): boolean {