1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-25 12:15:18 +01: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') { } else if (msg.command === 'showDialog') {
await this.showDialog(msg); await this.showDialog(msg);
} else if (msg.command === 'showToast') { } else if (msg.command === 'showToast') {
this.ngZone.run(async () => { this.ngZone.run(() => {
await this.showToast(msg); this.showToast(msg);
}); });
} else if (msg.command === 'analyticsEventTrack') { } else if (msg.command === 'analyticsEventTrack') {
this.analytics.eventTrack.next({ this.analytics.eventTrack.next({
@ -150,7 +150,7 @@ export class AppComponent implements OnInit {
this.storageService.save(ConstantsService.lastActiveKey, now); this.storageService.save(ConstantsService.lastActiveKey, now);
} }
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

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