mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-27 09:46:25 +02:00
fix: pull-based clipboard text and cursor at end with br
This commit is contained in:
parent
4a5a28805d
commit
f3d6ae95e1
5 changed files with 16 additions and 21 deletions
|
|
@ -17,11 +17,5 @@ contextBridge.exposeInMainWorld('electronAPI', {
|
|||
ipcRenderer.removeListener(IPC_CHANNELS.DEEP_LINK, listener);
|
||||
};
|
||||
},
|
||||
onQuickAskText: (callback: (text: string) => void) => {
|
||||
const listener = (_event: unknown, text: string) => callback(text);
|
||||
ipcRenderer.on(IPC_CHANNELS.QUICK_ASK_TEXT, listener);
|
||||
return () => {
|
||||
ipcRenderer.removeListener(IPC_CHANNELS.QUICK_ASK_TEXT, listener);
|
||||
};
|
||||
},
|
||||
getQuickAskText: () => ipcRenderer.invoke(IPC_CHANNELS.QUICK_ASK_TEXT),
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue