Skip to content

Commit

Permalink
Update app.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
huhuanming committed Feb 13, 2025
1 parent 0c7e0b9 commit 67ce9bf
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions apps/desktop/src-electron/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -586,8 +586,13 @@ function createMainWindow() {
event.returnValue = false;
return;
}
const result = await checkBiometricAuthChanged();
event.returnValue = result;
try {
const result = await checkBiometricAuthChanged();
event.returnValue = result;
} catch (error) {
logger.error('[CHECK_BIOMETRIC_AUTH_CHANGED] Error:', error);
event.returnValue = false;
}
});

ipcMain.on(ipcMessageKeys.TOUCH_ID_CAN_PROMPT, async (event) => {
Expand Down

0 comments on commit 67ce9bf

Please sign in to comment.