mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
lint
This commit is contained in:
parent
e0f7f34d14
commit
d4b1569892
1 changed files with 4 additions and 2 deletions
|
@ -38,12 +38,14 @@ contextBridge.exposeInMainWorld("electron", {
|
|||
return () => ipcRenderer.removeListener("on-download-progress", listener);
|
||||
},
|
||||
onSeedingList: (cb: (value: LibtorrentSeedingPayload[]) => void) => {
|
||||
const listener = (_event: Electron.IpcRendererEvent, value: LibtorrentSeedingPayload[]) => cb(value);
|
||||
const listener = (
|
||||
_event: Electron.IpcRendererEvent,
|
||||
value: LibtorrentSeedingPayload[]
|
||||
) => cb(value);
|
||||
ipcRenderer.on("on-seeding-list", listener);
|
||||
return () => ipcRenderer.removeListener("on-seeding-list", listener);
|
||||
},
|
||||
|
||||
|
||||
/* Catalogue */
|
||||
searchGames: (query: string) => ipcRenderer.invoke("searchGames", query),
|
||||
getCatalogue: (category: CatalogueCategory) =>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue