Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

hotfix for SVG download

Steven Teyacfa2f5e3856
diff --git a/components/app/modals/link-qr-modal.tsx b/components/app/modals/link-qr-modal.tsx
index c967816111..df0a9909ac 100644
--- a/components/app/modals/link-qr-modal.tsx
+++ b/components/app/modals/link-qr-modal.tsx
@@ -120,7 +120,18 @@ function LinkQRModalHelper({
<div className="flex gap-2 sm:px-16 px-4">
<button
onClick={async () =>
- download(await getQRAsSVGDataUri(qrData), "svg")
+ download(
+ await getQRAsSVGDataUri({
+ ...qrData,
+ ...(showLogo && {
+ imageSettings: {
+ ...qrData.imageSettings,
+ src: logo || "https://dub.sh/static/logo.svg",
+ },
+ }),
+ }),
+ "svg",
+ )
}
className="py-1.5 px-5 bg-black hover:bg-white rounded-md border border-black text-sm text-white hover:text-black transition-all w-full flex items-center gap-2 justify-center"
>