mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
not async. cleanup tsconfig
This commit is contained in:
@@ -5,6 +5,7 @@ import {
|
|||||||
ToasterContainerComponent,
|
ToasterContainerComponent,
|
||||||
ToasterService,
|
ToasterService,
|
||||||
} from 'angular2-toaster';
|
} from 'angular2-toaster';
|
||||||
|
import { Angulartics2 } from 'angulartics2';
|
||||||
import { Angulartics2GoogleAnalytics } from 'angulartics2/ga';
|
import { Angulartics2GoogleAnalytics } from 'angulartics2/ga';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
@@ -24,8 +25,6 @@ import { PremiumComponent } from './accounts/premium.component';
|
|||||||
import { SettingsComponent } from './accounts/settings.component';
|
import { SettingsComponent } from './accounts/settings.component';
|
||||||
import { PasswordGeneratorHistoryComponent } from './vault/password-generator-history.component';
|
import { PasswordGeneratorHistoryComponent } from './vault/password-generator-history.component';
|
||||||
|
|
||||||
import { Angulartics2 } from 'angulartics2';
|
|
||||||
|
|
||||||
import { ModalComponent } from 'jslib/angular/components/modal.component';
|
import { ModalComponent } from 'jslib/angular/components/modal.component';
|
||||||
|
|
||||||
import { BroadcasterService } from 'jslib/angular/services/broadcaster.service';
|
import { BroadcasterService } from 'jslib/angular/services/broadcaster.service';
|
||||||
@@ -141,7 +140,7 @@ export class AppComponent implements OnInit {
|
|||||||
PasswordGeneratorHistoryComponent, this.passwordHistoryRef);
|
PasswordGeneratorHistoryComponent, this.passwordHistoryRef);
|
||||||
break;
|
break;
|
||||||
case 'showToast':
|
case 'showToast':
|
||||||
await this.showToast(message);
|
this.showToast(message);
|
||||||
break;
|
break;
|
||||||
case 'analyticsEventTrack':
|
case 'analyticsEventTrack':
|
||||||
this.analytics.eventTrack.next({
|
this.analytics.eventTrack.next({
|
||||||
@@ -240,7 +239,7 @@ export class AppComponent implements OnInit {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private async showToast(msg: any) {
|
private showToast(msg: any) {
|
||||||
const toast: Toast = {
|
const toast: Toast = {
|
||||||
type: msg.type,
|
type: msg.type,
|
||||||
title: msg.title,
|
title: msg.title,
|
||||||
|
|||||||
@@ -17,12 +17,6 @@
|
|||||||
"@angular/*": [
|
"@angular/*": [
|
||||||
"node_modules/@angular/*"
|
"node_modules/@angular/*"
|
||||||
],
|
],
|
||||||
"angular2-toaster": [
|
|
||||||
"node_modules/angular2-toaster"
|
|
||||||
],
|
|
||||||
"angulartics2": [
|
|
||||||
"node_modules/angulartics2"
|
|
||||||
],
|
|
||||||
"electron": [
|
"electron": [
|
||||||
"node_modules/electron"
|
"node_modules/electron"
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user