From b237dd64eb8d5debdc5e8d292ba6058a0d0bcc78 Mon Sep 17 00:00:00 2001 From: junqwoopark Date: Sun, 7 Sep 2025 20:59:34 +0900 Subject: [PATCH] fix(export): Remove redundant hsl() from background color --- src/lib/components/Actions.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/components/Actions.svelte b/src/lib/components/Actions.svelte index ba1c8a97..c6d016e4 100644 --- a/src/lib/components/Actions.svelte +++ b/src/lib/components/Actions.svelte @@ -50,7 +50,7 @@ svg = getSvgElement(); } - svg.style.backgroundColor = `hsl(${window.getComputedStyle(document.body).getPropertyValue('--background')})`; + svg.style.backgroundColor = window.getComputedStyle(document.body).getPropertyValue('--background'); const svgString = svg.outerHTML .replaceAll('
', '
') @@ -100,7 +100,7 @@ ${svgString}`); throw new Error('context not found'); } - context.fillStyle = `hsl(${window.getComputedStyle(document.body).getPropertyValue('--background')})`; + context.fillStyle = window.getComputedStyle(document.body).getPropertyValue('--background'); context.fillRect(0, 0, canvas.width, canvas.height); const image = new Image();