diff --git a/src/workers/qrcode.worker.js b/src/workers/qrcode.worker.js index 6dad57d..e5e64c7 100644 --- a/src/workers/qrcode.worker.js +++ b/src/workers/qrcode.worker.js @@ -25,7 +25,7 @@ self.onmessage = async (e) => { ? `` : `` - svgContent = svgContent.replace('${defs}`) + svgContent = svgContent.replace('shape-rendering="crispEdges">', `shape-rendering="crispEdges">${defs}`) // qrcode outputs so it's safe to replace svgContent = svgContent.replace(/stroke="#000000"/g, 'stroke="url(#qr-grad)"') }