Skip to content

Commit

Permalink
Update character image fetching
Browse files Browse the repository at this point in the history
  • Loading branch information
MrTipson committed Aug 28, 2024
1 parent 8eba0e9 commit 18f10ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/getPerks.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ async function parsePerks(url) {
// Description is URI encoded for simplicity
description: encodeURI(x.children[2].innerHTML.replaceAll("/wiki/", "https://deadbydaylight.fandom.com/wiki/")),
character: x.children[3].querySelectorAll("a")[0]?.title,
characterImage: x.children[3].querySelectorAll("a")[1]?.href.replace(/\/revision\/latest.+/, "")
characterImage: x.children[3].querySelector("img")?.dataset.src.replace(/\/revision\/latest.+/, "")
}
});
// Sort so binary search can be used
Expand Down

0 comments on commit 18f10ea

Please sign in to comment.