We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7bfcf62 + 38906af commit 4dab470Copy full SHA for 4dab470
src/render/src/App.svelte
@@ -149,6 +149,15 @@
149
}, 1500);
150
}
151
152
+ function openCode() {
153
+ const urlSearchParams = new URLSearchParams(window.location.search);
154
+ const githubUrl = urlSearchParams.get("github") ?? "";
155
+
156
+ if (!githubUrl) return;
157
158
+ window.open(githubUrl, "_blank").focus();
159
+ }
160
161
function saveSVG() {
162
if (!rawSVG) {
163
return;
@@ -181,6 +190,7 @@
181
190
<div class="controlsContainer">
182
191
<div class="controls">
183
192
<button on:click={resetView}>Reset View</button>
193
+ <button on:click={openCode}>Open Code</button>
184
194
<button on:click={saveSVG}>Download SVG</button>
185
195
</div>
186
196
0 commit comments