This removes the unreliable hasCards check and uses a dedicated endpoint to get badges data (the same one used on games page) instead of parsing HTML. The downside is we lose some info, like badge unlock time and remaing drops. This should be an ok tradeoff to avoid "Are you logged into SteamCommunity?" errors. We also only fetch data for normal badges. Foils are rare and it's not worth an extra request.
This removes the unreliable
hasCards
check and uses a dedicated endpoint to get badges data (the same one used on games page) instead of parsing HTML. The downside is we lose some info, like badge unlock time and remaing drops. This should be an ok tradeoff to avoid "Are you logged into SteamCommunity?" errors. We also only fetch data for normal badges. Foils are rare and it's not worth an extra request.