diff --git a/electron/main.js b/electron/main.js index ac20559..88dbd1c 100644 --- a/electron/main.js +++ b/electron/main.js @@ -28,14 +28,11 @@ app.whenReady().then(() => { startWakeword({ onWake: showHud }); - ipcMain.on('hide-hud', () => hideHud()); + ipcMain.on('hide-hud', hideHud); - ipcMain.on('send-message', async (_, text) => { - try { - await axios.post(`${FOX_URL}/fox/message`, { text }); - } catch (err) { - console.error('[Fox] send-message fehlgeschlagen:', err.message); - } + ipcMain.on('send-message', (_, text) => { + axios.post(`${FOX_URL}/fox/message`, { text }) + .catch(err => console.error('[Fox] send-message fehlgeschlagen:', err.message)); }); ipcMain.handle('mac-command', async (_, command) => {