steamutils 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- package/SteamClient.js +3 -1
- package/package.json +1 -1
package/SteamClient.js
CHANGED
@@ -1468,9 +1468,11 @@ function SteamClient({
|
|
1468
1468
|
}
|
1469
1469
|
|
1470
1470
|
async function autoRequestFreeLicense(shouldLog = false, max = 10) {
|
1471
|
+
return
|
1471
1472
|
// const mCookies = await getCookiesWait()
|
1472
1473
|
// if (!mCookies) return
|
1473
|
-
|
1474
|
+
// let freeAppList = Array.isArray(steamClient.licenses) ? FreeAppList.filter(appId => steamClient.licenses.every(({package_id}) => package_id !== appId)) : FreeAppList;
|
1475
|
+
const freeAppList = freeAppList.filter(appId => ownedApps.some(app => app.appid == appId))
|
1474
1476
|
const recommendedApps = _.shuffle(freeAppList)
|
1475
1477
|
if (max) {
|
1476
1478
|
recommendedApps.length = Math.min(recommendedApps.length, max)
|