feat: adding how long to beat integration

This commit is contained in:
Hydra
2024-04-14 07:19:24 +01:00
parent 034ea6d817
commit 5580a9de38
14 changed files with 281 additions and 23 deletions

View File

@@ -39,6 +39,8 @@ contextBridge.exposeInMainWorld("electron", {
getGameShopDetails: (objectID: string, shop: GameShop, language: string) =>
ipcRenderer.invoke("getGameShopDetails", objectID, shop, language),
getRandomGame: () => ipcRenderer.invoke("getRandomGame"),
getHowLongToBeat: (objectID: string, shop: GameShop, title: string) =>
ipcRenderer.invoke("getHowLongToBeat", objectID, shop, title),
/* User preferences */
getUserPreferences: () => ipcRenderer.invoke("getUserPreferences"),