1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-13 14:53:33 +00:00

Add support for browser biometrics on Firefox >= 87 (#1668)

This commit is contained in:
Oscar Hinton
2021-03-10 21:27:05 +01:00
committed by GitHub
parent 0c25456ea3
commit e56e1a5c7f
5 changed files with 39 additions and 29 deletions

View File

@@ -292,8 +292,9 @@ export default class BrowserPlatformUtilsService implements PlatformUtilsService
});
}
supportsBiometric() {
return Promise.resolve(!this.isFirefox() && !this.isSafari());
async supportsBiometric() {
const isUnsuportedFirefox = this.isFirefox() && parseInt((await browser.runtime.getBrowserInfo()).version.split('.')[0], 10) < 87;
return !isUnsuportedFirefox && !this.isSafari();
}
authenticateBiometric() {