Skip to content

Commit

Permalink
fix: prompt touch id catch added
Browse files Browse the repository at this point in the history
  • Loading branch information
siandreev committed May 8, 2024
1 parent 1b4a8ea commit a430131
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion apps/desktop/src/electron/background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,12 @@ export const handleBackgroundMessage = async (message: Message): Promise<unknown
case 'reconnect':
return await TonConnectSSE.getInstance().reconnect();
case 'can-prompt-touch-id':
return !!systemPreferences?.canPromptTouchID?.();
try {
return !!systemPreferences?.canPromptTouchID?.();
} catch (e) {
console.error(e);
return false;
}
case 'prompt-touch-id':
return systemPreferences.promptTouchID(message.reason);
case 'get-preferred-system-languages':
Expand Down

0 comments on commit a430131

Please sign in to comment.