function handleDownloadStyle()

in packages/secure-static-site-frontend/src/ResourcesTable.tsx [71:80]


  function handleDownloadStyle(url: string) {
    const key = "style";
    dispatch({ type: "request", key });
    const style = document.createElement("link");
    style.rel = "stylesheet";
    style.onload = () => dispatch({ type: "response", key, status: "200" });
    style.onerror = () => dispatch({ type: "response", key, status: "Blocked" });
    style.href = url;
    document.body.appendChild(style);
  }