File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -243,6 +243,7 @@ async function fetchFunctionAndLanguage(
243
243
const code = await response .text ();
244
244
// We assume that the raw URL always ends with the file extension
245
245
const language = getLanguage (rawUrl );
246
+
246
247
const func = await getFunctionByLine (code , language , line );
247
248
if (! func ) {
248
249
throw new Error (` Unable to find function on line ${line } ` );
@@ -382,14 +383,16 @@ onMount(() => {
382
383
makeZoomable ();
383
384
});
384
385
</script >
386
+
385
387
<div class =" controlsContainer" >
386
388
<div class =" controls" >
387
389
<button onclick ={resetView }>Reset View</button >
388
390
<button
389
391
onclick ={openCode }
390
392
disabled ={! Boolean (codeUrl )}
391
393
title ={Boolean (codeUrl ) ? " " : " Only available for GitHub code" }
392
- >Open Code</button >
394
+ >Open Code</button
395
+ >
393
396
<button onclick ={saveSVG }>Download SVG</button >
394
397
</div >
395
398
{#if functionAndCFGMetadata }
You can’t perform that action at this time.
0 commit comments