feat(events): Add new event for getting magnet data

This commit is contained in:
ChristoferMendes 2024-05-10 11:43:36 -03:00
parent 02c4f0a0e6
commit a0344ea491
4 changed files with 13 additions and 0 deletions

View file

@ -112,4 +112,5 @@ contextBridge.exposeInMainWorld("electron", {
showOpenDialog: (options: Electron.OpenDialogOptions) =>
ipcRenderer.invoke("showOpenDialog", options),
platform: process.platform,
getMagnetData: (magnet: string) => ipcRenderer.invoke("getMagnetData", magnet),
});