}
        }
      } else {
        if ((importTextField.value || "").trim() != "") {
          jsonData = importTextField.value;
          postImportData();
          return;
        } else {
          error_div.removeAttribute("hidden");
          error_div.innerText = "You did not select a file and the textarea is empty!";
        }

      }
    }

    function postImportData() {
      fetch(`https://vMenu/importData`, {
        method: 'POST',
        headers: {
          'Content-Type': 'application/jso