Hide biometric setting when running in Android (#1907)
This commit is contained in:
parent
b99a81a1b9
commit
056fdba6dd
|
@ -314,6 +314,11 @@ export default class BrowserPlatformUtilsService implements PlatformUtilsService
|
||||||
}
|
}
|
||||||
|
|
||||||
async supportsBiometric() {
|
async supportsBiometric() {
|
||||||
|
const platformInfo = await BrowserApi.getPlatformInfo();
|
||||||
|
if (platformInfo.os === 'android') {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (this.isFirefox()) {
|
if (this.isFirefox()) {
|
||||||
return parseInt((await browser.runtime.getBrowserInfo()).version.split('.')[0], 10) >= 87;
|
return parseInt((await browser.runtime.getBrowserInfo()).version.split('.')[0], 10) >= 87;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue