From effe39015c424374f7f7186d2006b30a0fbd4843 Mon Sep 17 00:00:00 2001 From: hasparus Date: Tue, 30 Oct 2018 13:06:01 +0100 Subject: [PATCH] Get FormData --- script.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/script.js b/script.js index 34788a6b..269d67e6 100644 --- a/script.js +++ b/script.js @@ -7871,7 +7871,7 @@ function fantasyMap() { // // // - + const linkInputName = "link"; modal.innerHTML = `
@@ -7891,7 +7891,8 @@ function fantasyMap() {
Enter link to your map
{ event.preventDefault(); - console.log("ok", event) + const formData = new FormData(event.target); + console.log("ok", formData.get(linkInputName), event) document.body.removeChild(modal); }