Skip to content

Commit

Permalink
fix: fix incorrect return type
Browse files Browse the repository at this point in the history
  • Loading branch information
jooy2 committed Jan 17, 2024
1 parent d21e84c commit 9d17962
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/preload/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ contextBridge.exposeInMainWorld('mainApi', {
throw new Error(`Unknown ipc channel name: ${channel}`)
}
},
sendSync: (channel: string, ...data: any[]): void => {
sendSync: (channel: string, ...data: any[]): any => {
if (mainAvailChannels.includes(channel)) {
return ipcRenderer.sendSync.apply(null, [channel, ...data])
}
Expand Down

0 comments on commit 9d17962

Please sign in to comment.