Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
improvement: custom domain copying (#1074)
Ameer Al Ashhab50b260d5f08c
diff --git a/apps/web/app/(org)/dashboard/caps/components/CapCard/CapCard.tsx b/apps/web/app/(org)/dashboard/caps/components/CapCard/CapCard.tsxindex 8c493e0df..90041d38a 100644--- a/apps/web/app/(org)/dashboard/caps/components/CapCard/CapCard.tsx+++ b/apps/web/app/(org)/dashboard/caps/components/CapCard/CapCard.tsx@@ -322,9 +322,14 @@ export const CapCard = ({onClick={(e) => {e.stopPropagation();handleCopy(- buildEnv.NEXT_PUBLIC_IS_CAP && NODE_ENV === "production"- ? `https://cap.link/${cap.id}`- : `${location.origin}/s/${cap.id}`,+ buildEnv.NEXT_PUBLIC_IS_CAP &&+ NODE_ENV === "production" &&+ customDomain &&+ domainVerified+ ? `https://${customDomain}/s/${cap.id}`+ : buildEnv.NEXT_PUBLIC_IS_CAP && NODE_ENV === "production"+ ? `https://cap.link/${cap.id}`+ : `${location.origin}/s/${cap.id}`,);}}className="delay-0"