async function handleDownloadFont()

in packages/secure-static-site-frontend/src/ResourcesTable.tsx [81:91]


  async function handleDownloadFont(url: string) {
    const key = "font";
    dispatch({ type: "request", key });
    const fontFace = new FontFace("Roboto", `url(${url})`);
    try {
      await fontFace.load();
      dispatch({ type: "response", key, status: "200" })
    } catch (err) {
      dispatch({ type: "response", key, status: "Blocked" })
    }
  }