mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
Don't process reload when cancelling biometrics (#11081)
This commit is contained in:
@@ -170,9 +170,13 @@ export class BiometricsService extends DesktopBiometricsService {
|
|||||||
try {
|
try {
|
||||||
response = await callback();
|
response = await callback();
|
||||||
restartReload ||= restartReloadCallback(response);
|
restartReload ||= restartReloadCallback(response);
|
||||||
} catch {
|
} catch (error) {
|
||||||
|
if (error.message === "Biometric authentication failed") {
|
||||||
|
restartReload = false;
|
||||||
|
} else {
|
||||||
restartReload = true;
|
restartReload = true;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (restartReload) {
|
if (restartReload) {
|
||||||
this.messagingService.send("startProcessReload");
|
this.messagingService.send("startProcessReload");
|
||||||
|
|||||||
Reference in New Issue
Block a user