fix(ipc): send report IPC API

This commit is contained in:
MasterAcnolo
2026-09-16 22:16:59 +02:00
parent 4a64a40226
commit b319a1e445

View File

@@ -30,14 +30,6 @@ contextBridge.exposeInMainWorld("electronAPI", {
*/
logWarn: (...args) => ipcRenderer.send("log-warn", args.map(arg => typeof arg === "object" ? JSON.stringify(arg) : arg).join(" ")),
/**
* Send Bug Report
*
* @param params
* @returns {Promise<any>}
*/
sendReport: (params) => ipcRenderer.invoke('send-report', params),
/**
* Return process.platform to renderer
*/
@@ -155,4 +147,12 @@ contextBridge.exposeInMainWorld("topbarAPI", {
* Opens configuration/settings panel.
*/
openConfig: () => ipcRenderer.send("open-config"),
/**
* Send Bug Report
*
* @param params
* @returns {Promise<any>}
*/
sendReport: (params) => ipcRenderer.invoke('send-report', params),
});