mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-11 13:56:16 +00:00
fix: handle case where steam is not installed
This commit is contained in:
@@ -88,6 +88,10 @@ export const getSteamUsersIds = async () => {
|
||||
return [];
|
||||
}
|
||||
|
||||
if (!fs.existsSync(userDataPath)) {
|
||||
return [];
|
||||
}
|
||||
|
||||
const userIds = fs.readdirSync(path.join(userDataPath, "userdata"), {
|
||||
withFileTypes: true,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user