l);
    }
    const useNativeEl = document.getElementById("add-target-use-native");
    useNativeEl.checked = false;
    const closeEl = document.getElementById('modal-add-target-close');
    closeEl.addEventListener('click', function() {
      modalEl.style.display = "none";
    });
    const confirmEl = document.getElementById('modal-add-target-confirm');
    confirmEl.addEventListener('click', function() {
      closeEl.disabled = true;
      confirmEl.disabled = true;
      apiSetCrateTargets(crateName,