diff --git a/script.js b/script.js index e1b9d87..11600e2 100644 --- a/script.js +++ b/script.js @@ -8,9 +8,7 @@ function orkodyo(){ }; fetch(apiUrl + "/api/pizze", requestOptions) - .then((response) => reply = response.text()) - .then((result) => console.log(result)) + .then((response) => response.text()) + .then((result) => alert(result)) .catch((error) => console.error(error)); - - alert(reply); }