fix: move quickAskMode to IPC to prevent sessionStorage leak between windows

This commit is contained in:
CREDO23 2026-03-27 20:35:29 +02:00
parent 9f13da3fd1
commit 58ac17fb81
7 changed files with 32 additions and 11 deletions

View file

@ -18,5 +18,7 @@ contextBridge.exposeInMainWorld('electronAPI', {
};
},
getQuickAskText: () => ipcRenderer.invoke(IPC_CHANNELS.QUICK_ASK_TEXT),
setQuickAskMode: (mode: string) => ipcRenderer.invoke(IPC_CHANNELS.SET_QUICK_ASK_MODE, mode),
getQuickAskMode: () => ipcRenderer.invoke(IPC_CHANNELS.GET_QUICK_ASK_MODE),
replaceText: (text: string) => ipcRenderer.invoke(IPC_CHANNELS.REPLACE_TEXT, text),
});