From b49978c396d619b0fceb0c974d2047e147063c59 Mon Sep 17 00:00:00 2001 From: FallBackITA27 Date: Thu, 11 Apr 2024 16:34:15 +0200 Subject: [PATCH] im an idiot --- mkwpp-parser/script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mkwpp-parser/script.js b/mkwpp-parser/script.js index 8c4dfd2..77aecb1 100644 --- a/mkwpp-parser/script.js +++ b/mkwpp-parser/script.js @@ -65,7 +65,7 @@ function resetOutput() { document.getElementById("output").innerHTML = ""; } -document.addEventListener("DOMContentLoaded", function() { +document.addEventListener("DOMContentLoaded", async function() { fetch("https://www.mariokart64.com/mkw/profile.php").then(r=>r.text()).then(r=>{ let profileDocument = new DOMParser().parseFromString(r); let playerList = profileDocument.getElementsByClassName("playerslist")[0] @@ -73,7 +73,7 @@ document.addEventListener("DOMContentLoaded", function() { }); }); -document.getElementById("readInput").addEventListener("click", async function() { +document.getElementById("readInput").addEventListener("click", function() { let parserData = document.getElementById("inputTextArea").value.split("\n").filter(r=>r !== ""); let currentSubmission = {skip:true}; let skipToNextSubmission = false;