1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-12-24 16:49:26 +01:00

check SafariExtension instead of safari

This commit is contained in:
Kyle Spearrin 2018-07-21 15:35:17 -04:00
parent 240e5ba5ab
commit 790e50f2b6

View File

@ -7,8 +7,7 @@ import { Router } from '@angular/router';
import { ToasterService } from 'angular2-toaster';
import { Angulartics2 } from 'angulartics2';
import { TwoFactorOptionsComponent } from './two-factor-options.component';
import { DeviceType } from '../../enums/deviceType';
import { TwoFactorProviderType } from '../../enums/twoFactorProviderType';
import { TwoFactorEmailRequest } from '../../models/request/twoFactorEmailRequest';
@ -18,7 +17,6 @@ import { AuthService } from '../../abstractions/auth.service';
import { EnvironmentService } from '../../abstractions/environment.service';
import { I18nService } from '../../abstractions/i18n.service';
import { PlatformUtilsService } from '../../abstractions/platformUtils.service';
import { SyncService } from '../../abstractions/sync.service';
import { TwoFactorProviders } from '../../services/auth.service';
@ -117,7 +115,7 @@ export class TwoFactorComponent implements OnInit, OnDestroy {
break;
case TwoFactorProviderType.Duo:
case TwoFactorProviderType.OrganizationDuo:
if (this.platformUtilsService.isSafari()) {
if (this.platformUtilsService.getDevice() === DeviceType.SafariExtension) {
break;
}