1
0
mirror of https://github.com/bitwarden/web synced 2025-12-10 13:23:15 +00:00

route to previous url after unlock

This commit is contained in:
Kyle Spearrin
2018-06-09 22:40:53 -04:00
parent 7ebd18b00d
commit 5db9e9531f
5 changed files with 47 additions and 9 deletions

View File

@@ -40,6 +40,8 @@ import { UserService } from 'jslib/abstractions/user.service';
import { ConstantsService } from 'jslib/services/constants.service';
import { RouterService } from './services/router.service';
const BroadcasterSubscriptionId = 'AppComponent';
// Hack due to Angular 5.2 bug
const swal: SweetAlert = _swal as any;
@@ -67,7 +69,8 @@ export class AppComponent implements OnDestroy, OnInit {
private toasterService: ToasterService, private i18nService: I18nService,
private platformUtilsService: PlatformUtilsService, private ngZone: NgZone,
private lockService: LockService, private storageService: StorageService,
private cryptoService: CryptoService, private collectionService: CollectionService) { }
private cryptoService: CryptoService, private collectionService: CollectionService,
private routerService: RouterService) { }
ngOnInit() {
this.ngZone.runOutsideAngular(() => {