function handleDownloadScript()

in packages/secure-static-site-frontend/src/ResourcesTable.tsx [62:70]


  function handleDownloadScript(url: string) {
    const key = "script";
    dispatch({ type: "request", key });
    const script = document.createElement("script");
    script.onload = () => dispatch({ type: "response", key, status: "200" });
    script.onerror = () => dispatch({ type: "response", key, status: "Blocked" });
    script.src = url;
    document.body.appendChild(script);
  }