1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-13 06:43:35 +00:00

Add support for biometrics to Safari (#1775)

* Add Biometrics support to Safari
This commit is contained in:
Oscar Hinton
2021-04-07 17:39:59 +02:00
committed by GitHub
parent eeb61b019b
commit ae4c1b29d2
5 changed files with 174 additions and 70 deletions

View File

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