1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-08-08 20:13:50 +02:00

Hide biometric setting when running in Android (#1907)

This commit is contained in:
Oscar Hinton 2021-07-16 10:11:21 +02:00 committed by GitHub
parent b99a81a1b9
commit 056fdba6dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -314,6 +314,11 @@ export default class BrowserPlatformUtilsService implements PlatformUtilsService
}
async supportsBiometric() {
const platformInfo = await BrowserApi.getPlatformInfo();
if (platformInfo.os === 'android') {
return false;
}
if (this.isFirefox()) {
return parseInt((await browser.runtime.getBrowserInfo()).version.split('.')[0], 10) >= 87;
}