mirror of
https://github.com/bitwarden/browser
synced 2025-12-11 13:53:34 +00:00
has instead of get.
This commit is contained in:
@@ -11,22 +11,22 @@ angular
|
|||||||
|
|
||||||
$scope.providers = [];
|
$scope.providers = [];
|
||||||
|
|
||||||
if (providers.get(constants.twoFactorProvider.organizationDuo)) {
|
if (providers.has(constants.twoFactorProvider.organizationDuo)) {
|
||||||
add(constants.twoFactorProvider.organizationDuo);
|
add(constants.twoFactorProvider.organizationDuo);
|
||||||
}
|
}
|
||||||
if (providers.get(constants.twoFactorProvider.authenticator)) {
|
if (providers.has(constants.twoFactorProvider.authenticator)) {
|
||||||
add(constants.twoFactorProvider.authenticator);
|
add(constants.twoFactorProvider.authenticator);
|
||||||
}
|
}
|
||||||
if (providers.get(constants.twoFactorProvider.yubikey)) {
|
if (providers.has(constants.twoFactorProvider.yubikey)) {
|
||||||
add(constants.twoFactorProvider.yubikey);
|
add(constants.twoFactorProvider.yubikey);
|
||||||
}
|
}
|
||||||
if (providers.get(constants.twoFactorProvider.email)) {
|
if (providers.has(constants.twoFactorProvider.email)) {
|
||||||
add(constants.twoFactorProvider.email);
|
add(constants.twoFactorProvider.email);
|
||||||
}
|
}
|
||||||
if (providers.get(constants.twoFactorProvider.duo)) {
|
if (providers.has(constants.twoFactorProvider.duo)) {
|
||||||
add(constants.twoFactorProvider.duo);
|
add(constants.twoFactorProvider.duo);
|
||||||
}
|
}
|
||||||
if (providers.get(constants.twoFactorProvider.u2f) && platformUtilsService.supportsU2f($window)) {
|
if (providers.has(constants.twoFactorProvider.u2f) && platformUtilsService.supportsU2f($window)) {
|
||||||
add(constants.twoFactorProvider.u2f);
|
add(constants.twoFactorProvider.u2f);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user