Skip to content

Commit

Permalink
Add fixme comment
Browse files Browse the repository at this point in the history
  • Loading branch information
MxtOUT committed Jun 18, 2024
1 parent 76140cf commit fda9247
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/js/Background/Modules/Community/SteamCommunityApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ export default class SteamCommunityApi extends Api implements MessageHandlerInte
const doc = parser.parseFromString(html, "text/html");

const details = doc.querySelector(".detailsStatRight")?.textContent;

// FIXME Can't handle other units like KB
if (!details || !details.includes("MB")) {
throw new Error(`Couldn't find details block for item id "${id}"`);
}
Expand Down

0 comments on commit fda9247

Please sign in to comment.