From 804a060e581d6d1102e8d3d0af3e711046a89add Mon Sep 17 00:00:00 2001 From: pheralb Date: Sat, 27 Jan 2024 00:09:37 +0000 Subject: [PATCH] =?UTF-8?q?=E2=9A=99=EF=B8=8F=20Fixed=20download=20svg=20w?= =?UTF-8?q?hen=20``wordmark``=20&=20``route``=20are=20strings?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/downloadSvg.svelte | 121 ++++++++++++++++++------------ 1 file changed, 72 insertions(+), 49 deletions(-) diff --git a/src/components/downloadSvg.svelte b/src/components/downloadSvg.svelte index e347156..72ad344 100644 --- a/src/components/downloadSvg.svelte +++ b/src/components/downloadSvg.svelte @@ -84,7 +84,7 @@ }; -{#if typeof svgInfo.route === 'string'} +{#if typeof svgInfo.route === 'string' && svgInfo.wordmark === undefined} + {#if typeof svgInfo.route === 'string'} +
+ {svgInfo.title} + +
+ {:else} +
+ {svgInfo.title} + - + - -
+ + + {/if} {#if typeof svgInfo.wordmark === 'string' && svgInfo.wordmark !== undefined}