mirror of
https://github.com/MasterAcnolo/Freedom-Loader.git
synced 2026-09-27 20:11:15 +02:00
fix(ipc): send report IPC API
This commit is contained in:
16
preload.js
16
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<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),
|
||||
});
|
||||
Reference in New Issue
Block a user