1
0
mirror of https://github.com/bitwarden/browser synced 2025-01-06 15:38:42 +01:00

no async on params sub

This commit is contained in:
Kyle Spearrin 2019-08-16 21:04:03 -04:00
parent 3719095b18
commit aa0bfd3b45

View File

@ -70,11 +70,11 @@ export class CurrentTabComponent implements OnInit, OnDestroy {
private changeDetectorRef: ChangeDetectorRef, private syncService: SyncService, private changeDetectorRef: ChangeDetectorRef, private syncService: SyncService,
private searchService: SearchService, private storageService: StorageService, private searchService: SearchService, private storageService: StorageService,
route: ActivatedRoute) { route: ActivatedRoute) {
route.params.subscribe(async (val) => { route.params.subscribe((val) => {
console.log('route.params.subscribe'); console.log('route.params.subscribe');
if (platformUtilsService.getDevice() === DeviceType.SafariExtension) { if (platformUtilsService.getDevice() === DeviceType.SafariExtension) {
console.log(val); console.log(val);
await this.init(); this.init();
} }
}); });
} }