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