Skip to content

Commit

Permalink
style: auto format
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jun 7, 2024
1 parent 44e5064 commit d8dc6fb
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions lib/routes/steam/workshop-search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,16 @@ Language Parameter:
const ratingImage = item.find('.fileRating').first().attr('src');
// Some items are flaged as 'accepted for game' and 'incompatible item'
const checkMarkImages: string[] = [];
$(item).find('.workshop_checkmark').each((index, element) => {
const checkMarkElement = $(element);
const style = checkMarkElement.attr('style');
// Only add checkmark image if it is not set to 'display: none'
if (!style || !style.includes('display: none;')) {
checkMarkImages.push(checkMarkElement.attr('src') || '');
};
});
$(item)
.find('.workshop_checkmark')
.each((index, element) => {
const checkMarkElement = $(element);
const style = checkMarkElement.attr('style');
// Only add checkmark image if it is not set to 'display: none'
if (!style || !style.includes('display: none;')) {
checkMarkImages.push(checkMarkElement.attr('src') || '');
}
});
// const script_tag = item.next('script');
// console.log(`script_tag:${script_tag.text()}`);
const hoverContent = item.next('script').text();
Expand All @@ -80,8 +82,8 @@ Language Parameter:
const data = JSON.parse(jsonString);
if (data.id === publishedFileId) {
entryDescription = data.description;
};
};
}
}

return {
title: entryTitle,
Expand Down

0 comments on commit d8dc6fb

Please sign in to comment.