 [...currentTargets, {target: targetEl.value, docsUseNative: useNativeEl.checked}]).then((_) => {
        window.location.reload();
      }).finally(() => {
        closeEl.disabled = false;
        confirmEl.disabled = false;
      });
    });
  }

  function openRemoveTarget(crateName, currentTargets, targetInfo) {
    const modalEl = document.getElementById('modal-remove-target');
    modalEl.style.display = "unset";
    const targetEl = document.getElementById("remove-target");
    targetEl.value = targ