Skip to content

Commit

Permalink
Added invoke method
Browse files Browse the repository at this point in the history
  • Loading branch information
MIDAV0 committed Aug 29, 2023
1 parent 049b916 commit 05a92d3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/preload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ const electronHandler = {
once(channel: Channels, func: (...args: unknown[]) => void) {
ipcRenderer.once(channel, (_event, ...args) => func(...args));
},
uploadToIPFS(channel: Channels, ...args: unknown[]): Promise<string[]> {
return ipcRenderer.invoke(channel, ...args);
},
},
};

Expand Down

0 comments on commit 05a92d3

Please sign in to comment.