From c74516597a835f84e63c7baa0d2df817a2b30f48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1vid=20Jan=C4=8D=C3=A1r?= Date: Wed, 29 May 2024 12:21:44 +0200 Subject: [PATCH] helpme --- scripty/dano.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/scripty/dano.js b/scripty/dano.js index 2963a96..9c53d2f 100644 --- a/scripty/dano.js +++ b/scripty/dano.js @@ -1,3 +1,6 @@ -const response = fetch("/index.php?listfiles=1"); -const tabulka = document.getElementById("tabulka"); -tabulka.innerHTML = response.text; \ No newline at end of file +async function dokelu() { + const response = await fetch("/index.php?listfiles=1"); + const tabulka = document.getElementById("tabulka"); + tabulka.innerHTML = response.text; +} +dokelu(); \ No newline at end of file