diff --git a/public/mon-script.js b/public/mon-script.js index f8a667d..8f035f4 100644 --- a/public/mon-script.js +++ b/public/mon-script.js @@ -22,5 +22,8 @@ document.addEventListener("unload", () => { - alert("unload") + console.log("unload") + fetch('https://jsonplaceholder.typicode.com/todos/1') + .then(response => response.json()) + .then(json => console.log(json)) });