From b319a1e445f3721181b4e4afbfdef5abc928b47b Mon Sep 17 00:00:00 2001 From: MasterAcnolo Date: Wed, 16 Sep 2026 22:16:59 +0200 Subject: [PATCH] fix(ipc): send report IPC API --- preload.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/preload.js b/preload.js index b3c3637..7bc2b2f 100644 --- a/preload.js +++ b/preload.js @@ -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} - */ - 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} + */ + sendReport: (params) => ipcRenderer.invoke('send-report', params), }); \ No newline at end of file