diff --git a/src/popup/app.component.ts b/src/popup/app.component.ts index d7fe78bea39..345031af082 100644 --- a/src/popup/app.component.ts +++ b/src/popup/app.component.ts @@ -105,8 +105,8 @@ export class AppComponent implements OnInit { } else if (msg.command === 'showDialog') { await this.showDialog(msg); } else if (msg.command === 'showToast') { - this.ngZone.run(async () => { - await this.showToast(msg); + this.ngZone.run(() => { + this.showToast(msg); }); } else if (msg.command === 'analyticsEventTrack') { this.analytics.eventTrack.next({ @@ -150,7 +150,7 @@ export class AppComponent implements OnInit { this.storageService.save(ConstantsService.lastActiveKey, now); } - 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 41292c5ed83..81f7a59cac8 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -19,12 +19,6 @@ "@angular/*": [ "node_modules/@angular/*" ], - "angular2-toaster": [ - "node_modules/angular2-toaster" - ], - "angulartics2": [ - "node_modules/angulartics2" - ], "node": [ "node_modules/@types/node" ]