mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-24 11:21:02 +00:00
feat: refactor
This commit is contained in:
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user