From 7675e28948fd90cf11b18324bfd57c49d1214bb5 Mon Sep 17 00:00:00 2001 From: FallBackITA27 Date: Fri, 12 Apr 2024 20:58:49 +0200 Subject: [PATCH] bad href mistake --- mkwpp-ctgp-doublecheck/script.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mkwpp-ctgp-doublecheck/script.js b/mkwpp-ctgp-doublecheck/script.js index eaf93ad..b93cc91 100644 --- a/mkwpp-ctgp-doublecheck/script.js +++ b/mkwpp-ctgp-doublecheck/script.js @@ -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 = "";