Skip to content

Commit 448db1a

Browse files
authored
Merge pull request #42 from tryton-vanmeer/wishlist-skip-before-rating
Wishlist: Get Rating After Checking If Exists
2 parents c0cf001 + f38107e commit 448db1a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/js/wishlist.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
"use strict";
22

33
async function insertRating(row) {
4-
const appid = row.getAttribute("data-app-id");
5-
const rating = await getRatingElement(appid);
6-
74
const statsContainer = row.querySelector(".stats");
85

96
if (statsContainer.querySelector(".protondb_rating_link")) {
107
return true;
118
}
129

10+
const appid = row.getAttribute("data-app-id");
11+
const rating = await getRatingElement(appid);
12+
1313
const label = document.createElement("div");
1414
const value = document.createElement("div");
1515

@@ -27,7 +27,7 @@ function insertRatings() {
2727
const rows = document.getElementById("wishlist_ctn");
2828

2929
for (const row of rows.getElementsByClassName("wishlist_row")) {
30-
insertRating(row)
30+
insertRating(row);
3131
}
3232

3333
setTimeout(insertRatings, 1000);

0 commit comments

Comments
 (0)