Skip to content

Commit

Permalink
fix: resolve window.ipcRenderer.invoke no returns a Promise
Browse files Browse the repository at this point in the history
  • Loading branch information
mutuguangda authored Mar 26, 2024
1 parent c7e5fd7 commit 2af2a37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion electron/preload/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ contextBridge.exposeInMainWorld('ipcRenderer', {
},
invoke(...args: Parameters<typeof ipcRenderer.invoke>) {
const [channel, ...omit] = args
ipcRenderer.invoke(channel, ...omit)
return ipcRenderer.invoke(channel, ...omit)
},

// You can expose other APTs you need here.
Expand Down

0 comments on commit 2af2a37

Please sign in to comment.