mirror of
https://github.com/ShayManor/github-readme-stats.git
synced 2026-12-02 11:53:48 +05:30
feat(ResultScreen): wraps embed image markdown in a link to origin
This commit is contained in:
@@ -33,7 +33,7 @@ export function ResultScreen({ username, generating, generatedSvg, generateError
|
|||||||
const [copied, setCopied] = useState(false)
|
const [copied, setCopied] = useState(false)
|
||||||
const fallbackUrl = `${window.location.origin}/api/${encodeURIComponent(username)}`
|
const fallbackUrl = `${window.location.origin}/api/${encodeURIComponent(username)}`
|
||||||
const finalUrl = embedUrl || fallbackUrl
|
const finalUrl = embedUrl || fallbackUrl
|
||||||
const embedSnippet = ``
|
const embedSnippet = `[](${window.location.origin})`
|
||||||
|
|
||||||
const copy = async () => {
|
const copy = async () => {
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user