mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-07-03 14:06:12 +02:00
refactor: use globalThis for electron bridge in game details achievements fetch
This commit is contained in:
@@ -144,12 +144,15 @@ export function GameDetailsContextProvider({
|
||||
Boolean(userPreferences?.retroAchievementsWebApiKey);
|
||||
|
||||
const achievementsRequest = useRetroAchievements
|
||||
? window.electron.getRetroAchievementsAchievements(
|
||||
? globalThis.window.electron.getRetroAchievementsAchievements(
|
||||
objectId,
|
||||
shop,
|
||||
result!.raGameId!
|
||||
)
|
||||
: window.electron.getUnlockedAchievements(objectId, shop);
|
||||
: globalThis.window.electron.getUnlockedAchievements(
|
||||
objectId,
|
||||
shop
|
||||
);
|
||||
|
||||
achievementsRequest
|
||||
.then((achievements) => {
|
||||
|
||||
Reference in New Issue
Block a user