  // Always show the old standard error message
            showQgcError();
          }
        } catch (err) {
          clearTimeout(timeoutId);
          controller = null;
          setBusy(false);
  
          if (err.name !== 'AbortError') {
            Swal.close();
            // Always show the old standard error message
            showQgcError();
          }
        }
      }
  
      launchBtn.addEventListener('click', launchQGC);
    });
  </script>
{% endblock %}