feat: get trending games from api

This commit is contained in:
Zamitto 2024-09-12 20:39:49 -03:00
parent 87cacdf16c
commit 3199e56661
6 changed files with 66 additions and 48 deletions

View file

@ -44,6 +44,7 @@ contextBridge.exposeInMainWorld("electron", {
ipcRenderer.invoke("getGames", take, prevCursor),
searchGameRepacks: (query: string) =>
ipcRenderer.invoke("searchGameRepacks", query),
getTrendingGames: () => ipcRenderer.invoke("getTrendingGames"),
/* User preferences */
getUserPreferences: () => ipcRenderer.invoke("getUserPreferences"),