From 65f0fe7d4f98eaba219917fa8399466e68aa58dc Mon Sep 17 00:00:00 2001 From: FallBackITA27 Date: Thu, 11 Apr 2024 21:34:44 +0200 Subject: [PATCH] it should be async! --- 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 49aca6a..0aa12f2 100644 --- a/mkwpp-parser/script.js +++ b/mkwpp-parser/script.js @@ -226,7 +226,7 @@ document.getElementById("readInput").addEventListener("click", async function() } }); -document.addEventListener("DOMContentLoaded", function() { +document.addEventListener("DOMContentLoaded",async function() { fetch("https://corsproxy.io/?https://www.mariokart64.com/mkw/profile.php").then(r=>r.text()).then(r=>{ let profileDocument = new DOMParser().parseFromString(r);