mirror of
https://github.com/sveltejs/svelte.git
synced 2024-12-01 01:11:24 +01:00
9 lines
211 B
Svelte
9 lines
211 B
Svelte
|
<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>
|