Skip to content

Commit

Permalink
fix: restore response.blob()
Browse files Browse the repository at this point in the history
  • Loading branch information
yapyuyou committed May 10, 2024
1 parent 147616b commit b49bb04
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/renderer/SvgRenderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ const fetchSvg = async (svgInDoc: string, abortController: AbortController) => {
if (!response.ok) {
throw new Error("Failed to fetch remote SVG");
}
const res = await response.arrayBuffer();
const blob = await response.blob();
const res = await blob.arrayBuffer();
return res;
};

Expand Down

0 comments on commit b49bb04

Please sign in to comment.