diff --git a/src/js/wishlist.js b/src/js/wishlist.js index 68c60c2..5f8607c 100644 --- a/src/js/wishlist.js +++ b/src/js/wishlist.js @@ -1,15 +1,15 @@ "use strict"; async function insertRating(row) { - const appid = row.getAttribute("data-app-id"); - const rating = await getRatingElement(appid); - const statsContainer = row.querySelector(".stats"); if (statsContainer.querySelector(".protondb_rating_link")) { return true; } + const appid = row.getAttribute("data-app-id"); + const rating = await getRatingElement(appid); + const label = document.createElement("div"); const value = document.createElement("div"); @@ -27,7 +27,7 @@ function insertRatings() { const rows = document.getElementById("wishlist_ctn"); for (const row of rows.getElementsByClassName("wishlist_row")) { - insertRating(row) + insertRating(row); } setTimeout(insertRatings, 1000);