Skip to content
This repository has been archived by the owner on Jun 17, 2022. It is now read-only.

Commit

Permalink
check SafariExtension instead of safari
Browse files Browse the repository at this point in the history
  • Loading branch information
kspearrin committed Jul 21, 2018
1 parent 240e5ba commit 790e50f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/angular/components/two-factor.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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';

Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 790e50f

Please sign in to comment.