From 0691c111543c7da03044f7aa6d9c80f726f8c679 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 3 Oct 2018 09:51:14 -0400 Subject: [PATCH] not async. cleanup tsconfig --- src/popup/app.component.ts | 6 +++--- tsconfig.json | 6 ------ 2 files changed, 3 insertions(+), 9 deletions(-) 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" ]