Skip to content

Commit

Permalink
bad href mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
FallBackITA27 committed Apr 12, 2024
1 parent 26d4541 commit 7675e28
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mkwpp-ctgp-doublecheck/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,9 @@ async function writeObservedPlayers() {
for (let row of playerList.children) {
let starterData = row.children[0].children[0];
if (row.children[0].innerHTML === "Name") continue;
if (!Object.keys(ctgpLinks).includes(starterData.href.split("=")[1])) continue;
starterData.href = "https://www.mariokart64.com/mkw/" + starterData.href;
let ppid = starterData.href.split("=")[1];
if (!Object.keys(ctgpLinks).includes(ppid)) continue;
starterData.href = `https://www.mariokart64.com/mkw/profile=${ppid}`;
document.getElementById("info").appendChild(starterData);
}
document.getElementById("startChecker").disabled = "";
Expand Down

0 comments on commit 7675e28

Please sign in to comment.