You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/playgrounds/sandbox/scripts/main.template.svelte

9 lines
211 B

<script lang="ts">
function openInEditor() {
fetch('./__open-in-editor?file=src/main.svelte');
}
</script>
<h1>Demo App</h1>
<button class="open-in-editor" on:click={openInEditor}>edit main.svelte</button>