1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-06-24 10:14:48 +02:00

not async. cleanup tsconfig

This commit is contained in:
Kyle Spearrin 2018-10-03 09:51:14 -04:00
parent 755e3486ee
commit 0691c11154
2 changed files with 3 additions and 9 deletions

View File

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

View File

@ -19,12 +19,6 @@
"@angular/*": [
"node_modules/@angular/*"
],
"angular2-toaster": [
"node_modules/angular2-toaster"
],
"angulartics2": [
"node_modules/angulartics2"
],
"node": [
"node_modules/@types/node"
]