Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.
JavaScript aianthropiccross-platformgeminigroqlinuxmacosnvidiaopen-sourceopenaiparakeetspeech-to-texttranscribewhisperwindows
fix: add trycatch (#223)
Rutam Bhagat3d522dbe0f53
diff --git a/src/helpers/hotkeyManager.js b/src/helpers/hotkeyManager.jsindex f98db1af3..60f738ceb 100644--- a/src/helpers/hotkeyManager.js+++ b/src/helpers/hotkeyManager.js@@ -114,8 +114,14 @@ class HotkeyManager {const prevAccelerator = this.currentHotkey.startsWith("Fn+")? this.currentHotkey.slice(3): this.currentHotkey;- debugLogger.log(`[HotkeyManager] Unregistering previous hotkey: "${prevAccelerator}"`);- globalShortcut.unregister(prevAccelerator);+ try {+ debugLogger.log(`[HotkeyManager] Unregistering previous hotkey: "${prevAccelerator}"`);+ globalShortcut.unregister(prevAccelerator);+ } catch (error) {+ debugLogger.warn(+ `[HotkeyManager] Skipping previous hotkey unregister for non-accelerator "${prevAccelerator}": ${error.message}`+ );+ }}try {