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:
@@ -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]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user