1
0
mirror of https://github.com/bitwarden/jslib synced 2025-12-26 05:03:41 +00:00

[bug] Ensure keys and tokens load and save to the right locations for web

This commit is contained in:
addison
2021-11-12 15:10:43 -05:00
parent 79995a28eb
commit b5efd3e9be
4 changed files with 294 additions and 255 deletions

View File

@@ -36,7 +36,7 @@ export class LockComponent implements OnInit {
biometricText: string;
protected successRoute: string = 'vault';
protected onSuccessfulSubmit: () => void;
protected onSuccessfulSubmit: () => Promise<void>;
private invalidPinAttempts = 0;
private pinSet: [boolean, boolean];
@@ -180,7 +180,7 @@ export class LockComponent implements OnInit {
await this.stateService.setDisableFavicon(!!disableFavicon);
this.messagingService.send('unlocked');
if (this.onSuccessfulSubmit != null) {
this.onSuccessfulSubmit();
await this.onSuccessfulSubmit();
} else if (this.router != null) {
this.router.navigate([this.successRoute]);
}