Add event listeners for IPC messages in renderer.js
This commit is contained in:
@@ -648,6 +648,8 @@ folders.forEach(folderObj => {
|
||||
streamText: txt => cat.appendSpeech(txt),
|
||||
end: () => cat.endSpeech()
|
||||
};
|
||||
|
||||
ipcRenderer.on('cat-begin', () => window.cat && window.cat.begin());
|
||||
ipcRenderer.on('cat-stream', (_e, chunk) => window.cat && window.cat.streamText(chunk));
|
||||
ipcRenderer.on('cat-end', () => window.cat && window.cat.end());
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user