Restart GUI when we get API key
This commit is contained in:
@@ -2,8 +2,5 @@ const { contextBridge, ipcRenderer } = require('electron');
|
||||
|
||||
contextBridge.exposeInMainWorld('electronAPI', {
|
||||
sendPrompt: (prompt) => ipcRenderer.invoke('send-prompt', prompt),
|
||||
onApiKeySaved: (callback) => ipcRenderer.on('api-key-saved', callback),
|
||||
});
|
||||
|
||||
contextBridge.exposeInMainWorld('api', {
|
||||
submitApiKey: (apiKey) => ipcRenderer.send('submit-api-key', apiKey)
|
||||
});
|
||||
Reference in New Issue
Block a user