mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-01-23 21:44:55 +03:00
lint
This commit is contained in:
parent
e0f7f34d14
commit
d4b1569892
@ -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…
Reference in New Issue
Block a user