mirror of
https://github.com/mblanke/StrikePackageGPT.git
synced 2026-03-01 22:30:22 -05:00
Final code quality improvements: fix error handling and memory management
Co-authored-by: mblanke <9078342+mblanke@users.noreply.github.com>
This commit is contained in:
@@ -22,7 +22,9 @@ const VoiceControls = ({ onCommand, hotkey = ' ' }) => {
|
||||
return;
|
||||
}
|
||||
|
||||
// Request microphone permission
|
||||
// Note: We request permission on mount for better UX.
|
||||
// Alternative: Request only on first use by removing this and letting
|
||||
// startListening() handle the permission request
|
||||
requestMicrophonePermission();
|
||||
|
||||
// Setup hotkey listener
|
||||
|
||||
Reference in New Issue
Block a user