diff --git a/src/render/src/App.svelte b/src/render/src/App.svelte index bf87459c..87af5d22 100644 --- a/src/render/src/App.svelte +++ b/src/render/src/App.svelte @@ -149,6 +149,15 @@ }, 1500); } + function openCode() { + const urlSearchParams = new URLSearchParams(window.location.search); + const githubUrl = urlSearchParams.get("github") ?? ""; + + if (!githubUrl) return; + + window.open(githubUrl, "_blank").focus(); + } + function saveSVG() { if (!rawSVG) { return; @@ -181,6 +190,7 @@