From 68bf587bc61718f013fb41c2a844c24035870ad8 Mon Sep 17 00:00:00 2001 From: FallBackITA27 Date: Thu, 11 Apr 2024 22:14:25 +0200 Subject: [PATCH] text/html --- mkwpp-parser/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mkwpp-parser/script.js b/mkwpp-parser/script.js index 0534b2e..8eae69e 100644 --- a/mkwpp-parser/script.js +++ b/mkwpp-parser/script.js @@ -93,7 +93,7 @@ async function loadStuff() { console.log("enters"); 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 profileDocument = new DOMParser().parseFromString(r, "text/html"); let playerList = profileDocument.getElementsByClassName("playerslist")[0].children[0]; console.log(playerList); });