diff options
| author | yum <yum.food.vr@gmail.com> | 2025-05-29 17:23:09 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2025-05-29 17:23:09 -0700 |
| commit | 82a5b3805b2a54faea501ee362419330664c277a (patch) | |
| tree | 235ac6540d1a25e4fcf4107c1ea93f69e43b563b /ui/preload.js | |
| parent | 1ede199387c072a85e8757a6aaec04d2c7cdeba4 (diff) | |
Begin roughing out STT UI
HEAVILY VIBE CODED!
Diffstat (limited to 'ui/preload.js')
| -rw-r--r-- | ui/preload.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ui/preload.js b/ui/preload.js index 9f87d19..108bffe 100644 --- a/ui/preload.js +++ b/ui/preload.js @@ -1,6 +1,12 @@ const { contextBridge, ipcRenderer } = require('electron'); contextBridge.exposeInMainWorld('electronAPI', { + loadConfig: () => ipcRenderer.invoke('load-config'), + saveConfig: (config) => ipcRenderer.invoke('save-config', config), + restartApp: () => ipcRenderer.invoke('restart-app'), + getMicrophones: () => ipcRenderer.invoke('get-microphones'), + installRequirements: () => ipcRenderer.invoke('install-requirements'), + onPythonOutput: (callback) => ipcRenderer.on('python-output', (event, data) => callback(data)) }); console.log('Preload script loaded.'); |
