steamutils 1.1.13 → 1.1.14
Sign up to get free protection for your applications and to get access to all the features.
- package/SteamClient.js +4 -1
- package/package.json +1 -1
package/SteamClient.js
CHANGED
@@ -1052,7 +1052,10 @@ function SteamClient({
|
|
1052
1052
|
const ownedAppsCount = shouldLog ? (ownedApps?.length || 0) : 0
|
1053
1053
|
let recommendedApps = Math.random() > 0.5 ? _.shuffle(userData.rgRecommendedApps || []) : []
|
1054
1054
|
if (!recommendedApps?.length) {
|
1055
|
-
|
1055
|
+
try {
|
1056
|
+
recommendedApps = (await axios.request({url: 'https://raw.githubusercontent.com/5x/easy-steam-free-packages/master/src/script/packages_db.json'}))?.data?.packages || []
|
1057
|
+
} catch (e) {
|
1058
|
+
}
|
1056
1059
|
}
|
1057
1060
|
_.remove(recommendedApps, app => ownedApps.includes(app))
|
1058
1061
|
recommendedApps = _.shuffle(recommendedApps)
|