Skip to content

Commit

Permalink
await
Browse files Browse the repository at this point in the history
  • Loading branch information
FallBackITA27 committed Apr 11, 2024
1 parent 65f0fe7 commit e346368
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mkwpp-parser/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,10 @@ document.getElementById("readInput").addEventListener("click", async function()

document.addEventListener("DOMContentLoaded",async function() {

fetch("https://corsproxy.io/?https://www.mariokart64.com/mkw/profile.php").then(r=>r.text()).then(r=>{
await fetch("https://corsproxy.io/?https://www.mariokart64.com/mkw/profile.php").then(r=>r.text()).then(r=>{
console.log(r);
let profileDocument = new DOMParser().parseFromString(r);
let playerList = profileDocument.getElementsByClassName("playerslist")[0]
let playerList = profileDocument.getElementsByClassName("playerslist")[0];
console.log(playerList);
});
});
Expand Down

0 comments on commit e346368

Please sign in to comment.