From 1d6d61e2f10374ee76326eb2b4fd6abc296c5c7e Mon Sep 17 00:00:00 2001 From: pheralb Date: Tue, 4 Feb 2025 23:37:29 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=9B=A0=EF=B8=8F=20Use=20the=20new=20``get?= =?UTF-8?q?Source``=20utility=20on=20downloadSvg?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/downloadSvg.svelte | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/components/downloadSvg.svelte b/src/components/downloadSvg.svelte index 4593647..a4b2c4c 100644 --- a/src/components/downloadSvg.svelte +++ b/src/components/downloadSvg.svelte @@ -17,7 +17,7 @@ import { buttonStyles } from '@/ui/styles'; import { cn } from '@/utils/cn'; - import { getSvgContent } from '@/utils/getSvgContent'; + import { getSource } from '@/templates/getSource'; // Props: interface DownloadSVGProps { @@ -60,8 +60,12 @@ }) => { const zip = new JSZip(); - const lightSvg = await getSvgContent(lightRoute); - const darkSvg = await getSvgContent(darkRoute); + const lightSvg = await getSource({ + url: lightRoute + }); + const darkSvg = await getSource({ + url: darkRoute + }); if (isWordmark) { zip.file(`${svgInfo.title}_wordmark_light.svg`, lightSvg);