1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-12-29 17:38:04 +01:00

allow u2f if window.u2f is available (firefox 57+)

This commit is contained in:
Kyle Spearrin 2017-09-29 12:27:59 -04:00
parent c2f0352642
commit f733fe659b

View File

@ -126,7 +126,7 @@
for (var i = 0; i < keys.length; i++) {
var provider = $filter('filter')(constants.twoFactorProviderInfo, { type: keys[i], active: true });
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()) {
continue;
}