mirror of
https://github.com/bitwarden/browser
synced 2025-12-22 19:23:52 +00:00
Linter updates and fixes (#1604)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { NgModule, Injectable } from '@angular/core';
|
||||
import { Injectable, NgModule } from '@angular/core';
|
||||
import {
|
||||
ActivatedRouteSnapshot,
|
||||
RouteReuseStrategy,
|
||||
@@ -17,12 +17,12 @@ import { LockComponent } from './accounts/lock.component';
|
||||
import { LoginComponent } from './accounts/login.component';
|
||||
import { RegisterComponent } from './accounts/register.component';
|
||||
import { SetPasswordComponent } from './accounts/set-password.component';
|
||||
import { SsoComponent } from './accounts/sso.component';
|
||||
import { TwoFactorOptionsComponent } from './accounts/two-factor-options.component';
|
||||
import { TwoFactorComponent } from './accounts/two-factor.component';
|
||||
import { SsoComponent } from './accounts/sso.component';
|
||||
|
||||
import { PasswordGeneratorComponent } from './generator/password-generator.component';
|
||||
import { PasswordGeneratorHistoryComponent } from './generator/password-generator-history.component';
|
||||
import { PasswordGeneratorComponent } from './generator/password-generator.component';
|
||||
|
||||
import { PrivateModeComponent } from './private-mode.component';
|
||||
import { TabsComponent } from './tabs.component';
|
||||
|
||||
@@ -139,7 +139,7 @@ export class AppComponent implements OnInit {
|
||||
|
||||
BrowserApi.messageListener('app.component', (window as any).bitwardenPopupMainMessageListener);
|
||||
|
||||
this.router.events.subscribe((event) => {
|
||||
this.router.events.subscribe(event => {
|
||||
if (event instanceof NavigationEnd) {
|
||||
const url = event.urlAfterRedirects || event.url || '';
|
||||
if (url.startsWith('/tabs/') && (window as any).previousPopupUrl != null &&
|
||||
|
||||
@@ -22,9 +22,9 @@ import { LockComponent } from './accounts/lock.component';
|
||||
import { LoginComponent } from './accounts/login.component';
|
||||
import { RegisterComponent } from './accounts/register.component';
|
||||
import { SetPasswordComponent } from './accounts/set-password.component';
|
||||
import { SsoComponent } from './accounts/sso.component';
|
||||
import { TwoFactorOptionsComponent } from './accounts/two-factor-options.component';
|
||||
import { TwoFactorComponent } from './accounts/two-factor.component';
|
||||
import { SsoComponent } from './accounts/sso.component';
|
||||
|
||||
import { PasswordGeneratorHistoryComponent } from './generator/password-generator-history.component';
|
||||
import { PasswordGeneratorComponent } from './generator/password-generator.component';
|
||||
@@ -223,7 +223,7 @@ registerLocaleData(localeZhTw, 'zh-TW');
|
||||
TwoFactorComponent,
|
||||
SsoComponent,
|
||||
ViewComponent,
|
||||
SetPasswordComponent
|
||||
SetPasswordComponent,
|
||||
],
|
||||
entryComponents: [],
|
||||
providers: [
|
||||
|
||||
Reference in New Issue
Block a user