diff --git a/src/preload/index.js b/src/preload/index.js index 7e775bd..6f6a54a 100644 --- a/src/preload/index.js +++ b/src/preload/index.js @@ -31,8 +31,8 @@ if (process.contextIsolated) { contextBridge.exposeInMainWorld( "ipc", { - exec: (channel, ...args) => { - return ipcRenderer.invoke(channel, ...args) + exec: async (channel, ...args) => { + return await ipcRenderer.invoke(channel, ...args) }, send: (channel, args) => { ipcRenderer.send(channel, args)