mirror of
https://github.com/bitwarden/browser.git
synced 2025-01-03 18:28:13 +01:00
allow u2f if window.u2f is available (firefox 57+)
This commit is contained in:
parent
c2f0352642
commit
f733fe659b
@ -126,7 +126,7 @@
|
|||||||
for (var i = 0; i < keys.length; i++) {
|
for (var i = 0; i < keys.length; i++) {
|
||||||
var provider = $filter('filter')(constants.twoFactorProviderInfo, { type: keys[i], active: true });
|
var provider = $filter('filter')(constants.twoFactorProviderInfo, { type: keys[i], active: true });
|
||||||
if (provider.length && provider[0].priority > providerPriority) {
|
if (provider.length && provider[0].priority > providerPriority) {
|
||||||
if (provider[0].type == constants.twoFactorProvider.u2f &&
|
if (provider[0].type == constants.twoFactorProvider.u2f && (typeof $window.u2f === 'undefined') &&
|
||||||
!utilsService.isChrome() && !utilsService.isOpera()) {
|
!utilsService.isChrome() && !utilsService.isOpera()) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user