1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 16:23:44 +00:00

not async. cleanup tsconfig

This commit is contained in:
Kyle Spearrin
2018-10-03 09:51:12 -04:00
parent 2ca8ac573b
commit c53b690097
2 changed files with 3 additions and 10 deletions

View File

@@ -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,

View File

@@ -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"
], ],