diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 32ac6fe4..2f72984f 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -5,6 +5,7 @@ import { ToasterContainerComponent, ToasterService, } from 'angular2-toaster'; +import { Angulartics2 } from 'angulartics2'; import { Angulartics2GoogleAnalytics } from 'angulartics2/ga'; import { @@ -24,8 +25,6 @@ import { PremiumComponent } from './accounts/premium.component'; import { SettingsComponent } from './accounts/settings.component'; import { PasswordGeneratorHistoryComponent } from './vault/password-generator-history.component'; -import { Angulartics2 } from 'angulartics2'; - import { ModalComponent } from 'jslib/angular/components/modal.component'; import { BroadcasterService } from 'jslib/angular/services/broadcaster.service'; @@ -141,7 +140,7 @@ export class AppComponent implements OnInit { PasswordGeneratorHistoryComponent, this.passwordHistoryRef); break; case 'showToast': - await this.showToast(message); + this.showToast(message); break; case 'analyticsEventTrack': 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 = { type: msg.type, title: msg.title, diff --git a/tsconfig.json b/tsconfig.json index 69849a05..71c1076d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -17,12 +17,6 @@ "@angular/*": [ "node_modules/@angular/*" ], - "angular2-toaster": [ - "node_modules/angular2-toaster" - ], - "angulartics2": [ - "node_modules/angulartics2" - ], "electron": [ "node_modules/electron" ],