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); }