mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
feat: refactor
This commit is contained in:
parent
33e91e2007
commit
36e6a8cef7
37 changed files with 151 additions and 254 deletions
|
@ -51,8 +51,6 @@ contextBridge.exposeInMainWorld("electron", {
|
|||
getGameStats: (objectId: string, shop: GameShop) =>
|
||||
ipcRenderer.invoke("getGameStats", objectId, shop),
|
||||
getTrendingGames: () => ipcRenderer.invoke("getTrendingGames"),
|
||||
getGameAchievements: (objectId: string, shop: GameShop, userId?: string) =>
|
||||
ipcRenderer.invoke("getGameAchievements", objectId, shop, userId),
|
||||
onAchievementUnlocked: (
|
||||
cb: (
|
||||
objectId: string,
|
||||
|
@ -270,6 +268,8 @@ contextBridge.exposeInMainWorld("electron", {
|
|||
shop,
|
||||
userId
|
||||
),
|
||||
getUnlockedAchievements: (objectId: string, shop: GameShop) =>
|
||||
ipcRenderer.invoke("getUnlockedAchievements", objectId, shop),
|
||||
|
||||
/* Auth */
|
||||
signOut: () => ipcRenderer.invoke("signOut"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue