From 1f600d487644f84e7faff10284ff75459a63f0f5 Mon Sep 17 00:00:00 2001 From: martin-mfg <2026226+martin-mfg@users.noreply.github.com> Date: Sun, 21 Sep 2025 14:54:43 +0200 Subject: [PATCH] fix downloader reference --- frontend/frontend/src/components/Card/SVG.js | 3 +-- frontend/frontend/src/pages/Home/stages/Display.js | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend/frontend/src/components/Card/SVG.js b/frontend/frontend/src/components/Card/SVG.js index 79f58e06..0745ca09 100644 --- a/frontend/frontend/src/components/Card/SVG.js +++ b/frontend/frontend/src/components/Card/SVG.js @@ -33,7 +33,6 @@ const SvgInline = (props) => { shadow.innerHTML = ''; // Insert SVG const wrapper = document.createElement('div'); - wrapper.id = 'svg-card'; wrapper.innerHTML = svg; shadow.appendChild(wrapper); } @@ -47,7 +46,7 @@ const SvgInline = (props) => { } // Render a container div for the shadow DOM - return
; + return ; }; SvgInline.propTypes = { diff --git a/frontend/frontend/src/pages/Home/stages/Display.js b/frontend/frontend/src/pages/Home/stages/Display.js index 21f9d7e6..4f60d8e7 100644 --- a/frontend/frontend/src/pages/Home/stages/Display.js +++ b/frontend/frontend/src/pages/Home/stages/Display.js @@ -17,7 +17,7 @@ const DisplayStage = ({ userId, themeSuffix }) => { const downloadPNG = () => { saveSvgAsPng( - document.getElementById('abc').shadowRoot.firstElementChild + document.getElementById('svgWrapper').shadowRoot.firstElementChild .firstElementChild, `${userId}_${card}.png`, {